From aeb43e37f4683f5e74e1191f1ff2d415351baeab Mon Sep 17 00:00:00 2001 From: ulrich Date: Thu, 06 May 2021 07:29:04 +0000 Subject: [PATCH] Server umgestellt auf CachedThreadPool --- www/js/app.js | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/www/js/app.js b/www/js/app.js index 752e918..38da416 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -4,8 +4,8 @@ var cache; // mustache templates var ortPfad; var mediaPfad; - var katUrl; - var selTitel; + //var katUrl; + //var selTitel; var katName; this.init = function () { @@ -38,7 +38,7 @@ self.seitenleiste_umschalten(); self.dialog_unten_zeigen(); }; - + /* ---------------- Entitaets-Listen ----------------- */ this.livestream_selection = function() { @@ -712,15 +712,14 @@ self.http_call('DELETE', u, data, cb); }; - this.http_call = function (method, u, data, scallback) { + this.http_call = function (method, callurl, data, scallback) { var xhr = new XMLHttpRequest(); - var url = u; xhr.onreadystatechange = function () { if (this.readyState === 4 && this.status === 200) { scallback(this.responseText); } }; - xhr.open(method, url); + xhr.open(method, callurl); if (method === 'GET') { xhr.send(); } else if (method === 'POST' || method === 'PUT' || method === 'DELETE') { -- Gitblit v1.9.3