From 3400c7fabbf382a3690c7df989d458def01aff66 Mon Sep 17 00:00:00 2001 From: ulrich@undisclosed Date: Mon, 11 May 2020 07:21:23 +0000 Subject: [PATCH] Aufraeumarbeiten --- web/ui2/js/app.js | 27 +++++++++++++++++++++++++-- 1 files changed, 25 insertions(+), 2 deletions(-) diff --git a/web/ui2/js/app.js b/web/ui2/js/app.js index 60b62d6..07fb0dd 100644 --- a/web/ui2/js/app.js +++ b/web/ui2/js/app.js @@ -1,4 +1,4 @@ -function AppVorlage() { +function NutzerApp() { var self = this; var appMenu; var vorlagen; @@ -46,6 +46,11 @@ 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(); }; @@ -116,7 +121,7 @@ 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); @@ -182,5 +187,23 @@ xmlhttp.open("GET", url, true); 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; +} + -- Gitblit v1.9.3