| | |
| | | |
| | | this.init = function () { |
| | | self.vorlagen = new Vorlagen(); |
| | | /* |
| | | self.appMenu = new AppMenu(); |
| | | self.appMenu.init( |
| | | "data/menu/", |
| | |
| | | document.querySelector('.hamburger').addEventListener('click', function (e) { |
| | | self.menue_umschalten(); |
| | | }); |
| | | */ |
| | | var dlg = document.querySelector(".dialog"); |
| | | dlg.style.flexBasis = '0em'; |
| | | document.querySelector('#nutzer-neu-btn').addEventListener('click', self.nutzer_neu_dialog_zeigen); |
| | | self.seitenleiste_umschalten(); |
| | | self.west_umschalten(); |
| | | self.west_umschalten(); |
| | | self.get_login(); |
| | | self.get_user_list(); |
| | | self.loc = window.location.protocol + '//' + window.location.host; |
| | |
| | | }); |
| | | }); |
| | | }); |
| | | }); |
| | | }); |
| | | document.querySelector('.zurueck-btn').style.color = 'black'; |
| | | }; |
| | | |
| | | this.grant_role_klick = function(event) { |
| | |
| | | |
| | | this.info_dialog_zeigen = function () { |
| | | self.dialog_zeigen('data/tpl/dlg-info.tpl', ''); |
| | | self.menue_umschalten(); |
| | | //self.menue_umschalten(); |
| | | }; |
| | | |
| | | this.nutzer_neu_dialog_zeigen = function () { |
| | |
| | | btn.addEventListener('click', self.nutzer_speichern); |
| | | } |
| | | }); |
| | | self.menue_umschalten(); |
| | | //self.menue_umschalten(); |
| | | }; |
| | | |
| | | this.seitenleiste_umschalten = function () { |
| | |
| | | //self.menue_umschalten(); |
| | | }; |
| | | |
| | | this.west_umschalten = function() { |
| | | var westDiv = document.querySelector('.west'); |
| | | if (westDiv.classList.contains('west-open')) { |
| | | westDiv.classList.remove('west-open'); |
| | | westDiv.style.flexBasis = '0em'; |
| | | } else { |
| | | westDiv.classList.add('west-open'); |
| | | westDiv.style.flexBasis = '6em'; |
| | | } |
| | | //self.menue_umschalten(); |
| | | }; |
| | | |
| | | this.fusszeile_umschalten = function () { |
| | | var suedDiv = document.querySelector('.sued'); |
| | | if (suedDiv.classList.contains('sued-open')) { |
| | |
| | | suedDiv.classList.add('sued-open'); |
| | | suedDiv.style.height = '1.5em'; |
| | | } |
| | | self.menue_umschalten(); |
| | | //self.menue_umschalten(); |
| | | }; |
| | | |
| | | this.meldung_mit_timeout = function (meldung, timeout) { |
| | |
| | | var m = 'getUserNameList'; |
| | | var u = '../svc/' + m; |
| | | self.http_get(u, function (antwort) { |
| | | self.vorlagen.html_erzeugen( |
| | | 'data/tpl/inhalt.tpl', |
| | | JSON.parse(antwort), |
| | | function (h) { |
| | | var elem = document.getElementById('nutzer'); |
| | | elem.innerHTML = h; |
| | | self.addEvtListener('p.nutzer-liste-eintrag', 'click', self.nutzerliste_klick); |
| | | self.vorlagen.html_erzeugen( |
| | | 'data/tpl/inhalt.tpl', |
| | | JSON.parse(antwort), |
| | | function (h) { |
| | | var elem = document.getElementById('nutzer'); |
| | | elem.innerHTML = h; |
| | | self.addEvtListener('p.nutzer-liste-eintrag', 'click', self.nutzerliste_klick); |
| | | document.querySelector('.zurueck-btn').style.color = '#eee'; |
| | | }); |
| | | }); |
| | | }); |
| | | }; |
| | | |
| | | this.neuen_nutzer_speichern = function(u) { |