From ca9872be43938cf03f23ca9ac05a2acd69429cf3 Mon Sep 17 00:00:00 2001
From: ulrich <undisclosed@undiclosed>
Date: Tue, 06 Apr 2021 14:49:30 +0000
Subject: [PATCH] Katalog (in Arbeit)

---
 www/ui/js/app.js |   15 +++------------
 1 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/www/ui/js/app.js b/www/ui/js/app.js
index fbe42b3..b7b98a2 100644
--- a/www/ui/js/app.js
+++ b/www/ui/js/app.js
@@ -17,7 +17,6 @@
   // darunter der Inhalt des aktuellen Pfades
   this.media_liste = function() {
     if(self.ortPfad === '/') {
-      console.log("kein Pfad, liste Kataloge");
       // Kataloge listen
       self.http_get('../api/store/Ablageort/', function (responseText) {
         self.vorlage_laden_und_fuellen("data/tpl/katalog_root_liste.tpl", JSON.parse(responseText), function (html) {
@@ -34,15 +33,14 @@
         });
       });
     } else {
-      console.log("liste Pfad " + self.mediaPfad);
       // Pfad listen
       self.http_get('..' + self.ortPfad + '/' + self.mediaPfad + '/', function(responseText) {
-        console.log(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;
           self.addEvtListener('.entity-eintrag', 'click', function (event) {
             var t = event.target;
-            console.log(t.textContent);
+            //console.log(t.textContent);
             if(t.classList.contains("entity-typ-folder")) {
               self.mediaPfad = self.mediaPfad + '/' + t.textContent;
               self.media_liste();
@@ -56,15 +54,8 @@
             } else {
               var pos = self.mediaPfad.lastIndexOf('/');
               var parent = self.mediaPfad.substring(0, pos);
-              console.log("Parent: " + parent);
+              //console.log("Parent: " + parent);
               self.mediaPfad = parent;
-              /*
-              if(parent === '/') {
-                self.ortPfad = '/';
-              } else {
-                self.mediaPfad = parent;
-              }
-              */
             }
             self.media_liste();
           });        

--
Gitblit v1.9.3