| | |
| | | function NutzerApp() { |
| | | var self = this; |
| | | //var vorlagen; |
| | | var userid; |
| | | var loc; |
| | | this.cache = {}; // mustache template cache |
| | | |
| | | this.init = function () { |
| | |
| | | document.querySelector('.ost').style.flexBasis = '0em'; |
| | | self.get_login(); |
| | | self.get_user_list(); |
| | | self.loc = window.location.protocol + '//' + window.location.host; |
| | | }; |
| | | |
| | | /* Nutzerverwaltung */ |
| | |
| | | if(method === 'GET') { |
| | | xhr.send(); |
| | | } else if(method === 'POST' || method === 'PUT') { |
| | | xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); |
| | | xhr.send(data); |
| | | } |
| | | }; |