From f61a32dab54add0f23e10a98ffe18d06f882c063 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Wed, 07 Apr 2021 22:08:38 +0000
Subject: [PATCH] Nachbesserungen
---
www/ui/js/app.js | 22 +++++++++-------------
1 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/www/ui/js/app.js b/www/ui/js/app.js
index 434671b..ded0e0e 100644
--- a/www/ui/js/app.js
+++ b/www/ui/js/app.js
@@ -74,24 +74,24 @@
});
} else {
// Pfad listen
- console.log("vorher ortPfad: " + self.ortPfad);
- console.log("vorher mediaPfad: " + self.mediaPfad);
+ // console.log("vorher ortPfad: " + self.ortPfad);
+ //console.log("vorher mediaPfad: " + self.mediaPfad);
//self.http_get('..' + self.ortPfad + '/' + self.mediaPfad + '/', function(responseText) {
var url = '..' + self.ortPfad + self.mediaPfad;
if(!url.endsWith('/')) {
url = url + '/';
}
- console.log("url: " + url);
+ //console.log("url: " + url);
self.http_get(url, function(responseText) {
//console.log(responseText);
self.vorlage_laden_und_fuellen("data/tpl/katalog_inhalt_liste.tpl", JSON.parse(responseText), function (html) {
document.querySelector(".zentraler-inhalt").innerHTML = html;
- console.log("mediaPfad bei Anzeige: " + self.mediaPfad);
+ //console.log("mediaPfad bei Anzeige: " + self.mediaPfad);
self.addEvtListener('.entity-eintrag', 'click', function (event) {
var t = event.target;
var tx = t.textContent;
- console.log("tx: " + tx);
- console.log("mediaPfad nach Auswahl: " + self.mediaPfad);
+ //console.log("tx: " + tx);
+ //console.log("mediaPfad nach Auswahl: " + self.mediaPfad);
if(t.classList.contains("entity-typ-folder")) {
if(self.mediaPfad.endsWith('/')) {
self.mediaPfad = self.mediaPfad + tx;
@@ -99,10 +99,10 @@
self.mediaPfad = self.mediaPfad + '/' + tx;
}
//self.mediaPfad = self.mediaPfad + t.textContent;
- console.log("mediaPfad neu: " + self.mediaPfad);
+ //console.log("mediaPfad neu: " + self.mediaPfad);
self.media_liste();
} else {
- console.log("Media-Inhalt auswaehlen oder abspielen");
+ //console.log("Media-Inhalt auswaehlen oder abspielen");
self.removeClassMulti('selected');
t.classList.add('selected');
}
@@ -118,7 +118,7 @@
} else {
parent = '/';
}
- console.log("Parent: " + parent);
+ //console.log("Parent: " + parent);
self.mediaPfad = parent;
}
self.media_liste();
@@ -127,8 +127,6 @@
});
}
};
-
- /* Die folgenden '_liste' Funktionen koennen noch vereinheitlicht werden */
this.ablageort_liste = function() {
self.http_get('../api/store/Ablageort/liste/', function (responseText) {
@@ -183,8 +181,6 @@
});
});
};
-
- /* Die folgenden '_form' Funktionen koennen noch vereinheitlicht werden */
this.abspieler_form = function(pl) {
self.vorlage_laden_und_fuellen("data/tpl/form_abspieler.tpl", pl, function (html) {
--
Gitblit v1.9.3