| | |
| | | function AppVorlage() { |
| | | function NutzerApp() { |
| | | var self = this; |
| | | var appMenu; |
| | | var vorlagen; |
| | |
| | | |
| | | this.info_dialog_zeigen = function () { |
| | | self.dialog_laden_und_zeigen('data/tpl/dlg-info.tpl', ''); |
| | | self.menue_umschalten(); |
| | | }; |
| | | |
| | | this.nutzer_neu_dialog_zeigen = function () { |
| | | self.dialog_laden_und_zeigen('data/tpl/dlg-nutzer-neu.tpl', ''); |
| | | self.menue_umschalten(); |
| | | }; |
| | | |
| | |
| | | vurl, |
| | | inhalt, |
| | | function (html) { |
| | | dlg.style.flexBasis = '6em'; |
| | | dlg.style.flexBasis = '14em'; |
| | | setTimeout(function () { |
| | | dlg.innerHTML = html; |
| | | document.querySelector('.close-btn').addEventListener('click', self.dialog_schliessen); |
| | |
| | | xmlhttp.send(); |
| | | }; |
| | | |
| | | /* ----- Hilfsfunktionen ----- */ |
| | | |
| | | this.serialisieren = function(obj) { |
| | | return '{"' + obj.constructor.name + '":' + JSON.stringify(obj) + '}'; |
| | | }; |
| | | |
| | | } |
| | | |
| | | |
| | | /* ----- Objekte ----- */ |
| | | |
| | | function User(i, p, fn, ln, em) { |
| | | this.id = i; |
| | | this.pw = p; |
| | | this.firstName = fn; |
| | | this.lastName = ln; |
| | | this.email = em; |
| | | } |
| | | |