| | |
| | | /* API functions */ |
| | | |
| | | this.get_user_list = function() { |
| | | //var m = 'getUserNameList'; |
| | | var m = 'getUserNameList'; |
| | | var u = '../svc/' + m; |
| | | self.http_get(u, function (antwort) { |
| | |
| | | elem.innerHTML = h; |
| | | self.addEvtListener('p.nutzer-liste-eintrag', 'click', self.nutzerliste_klick); |
| | | document.querySelector('.zurueck-btn').style.color = '#eee'; |
| | | self.removeAllListeners('top-neu-btn'); |
| | | var topBtn = document.querySelector('#top-neu-btn'); |
| | | topBtn.title = "Neuer Benutzer"; |
| | | topBtn.addEventListener('click', self.nutzer_neu_dialog_zeigen); |
| | | }); |
| | | }); |
| | | }; |
| | |
| | | } |
| | | }; |
| | | |
| | | this.removeAllListeners = function(elementId) { |
| | | var el = document.getElementById(elementId); |
| | | elClone = el.cloneNode(true); |
| | | el.parentNode.replaceChild(elClone, el); |
| | | }; |
| | | |
| | | } |
| | | |
| | | /* ----- Vorlagen ----- */ |