File was renamed from web/profil2/app.js |
| | |
| | | this.cache = {}; // mustache template cache |
| | | |
| | | this.init = function () { |
| | | document.querySelector('#top-logout-btn').addEventListener('click', self.logout); |
| | | var dlg = document.querySelector(".dialog"); |
| | | dlg.style.flexBasis = '0em'; |
| | | document.querySelector('.west').style.flexBasis = '0em'; |
| | |
| | | }); |
| | | }; |
| | | |
| | | this.logout = function() { |
| | | var m = '?c=de.uhilger.um.pub.SessionManager&m=expireSession'; |
| | | var u = '../pub' + m; |
| | | self.http_get(u, function (resp) { |
| | | //$('#userMenu').text('nicht angemeldet'); |
| | | window.location.href = '../logout.jsp'; |
| | | }); |
| | | }; |
| | | |
| | | /* -------- ajax helper functions ----------- */ |
| | | |
| | | this.http_get = function(u, cb) { |