Dateiverwaltung für die WebBox
ulrich
2020-01-24 94b87168466ef2904087039ac111d569d241b809
in Arbeit: Bereinigung der jQuery-Anteile aus app.js usw.
1 files modified
22 ■■■■■ changed files
web/ui2/js/app.js 22 ●●●●● patch | view | raw | blame | history
web/ui2/js/app.js
@@ -3,6 +3,7 @@
  var appMenu;
  var vorlagen;
  var api;
  var userid;
  this.datei_neuer_text = function() {
    self.menu_message("Neuer Text");  
@@ -171,6 +172,27 @@
      });
    };
  /* -------- An- und Abmelden ------------- */
  this.fm_get_login = function() {
    var m = '?c=de.uhilger.filecms.pub.SessionManager&m=getSessionUser';
    var u = '../pub' + m;
    self.fm_get(u, "text", function (resp) {
      self.userid = resp;
      document.querySelector("#userMenu").textContent = resp;
    });
  };
  this.fm_logout = function() {
    var m = '?c=de.uhilger.filecms.pub.SessionManager&m=expireSession';
    var u = '../pub' + m;
    self.fm_get(u, "text", function (resp) {
      //$('#userMenu').text('nicht angemeldet');
      window.location.href = '../logout.html';
    });
  };
/* -------- ajax helper functions ----------- */
    this.fm_get = function(u, dtype, scallback) {