From 9350c960b07404690ed747ed7725e94313c629fb Mon Sep 17 00:00:00 2001
From: ulrich
Date: Wed, 20 Jan 2021 22:48:25 +0000
Subject: [PATCH] Upload und Bildbetrachtung fertig uebertragen

---
 web/ui2/js/app.js |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/web/ui2/js/app.js b/web/ui2/js/app.js
index 4824974..d9e4050 100644
--- a/web/ui2/js/app.js
+++ b/web/ui2/js/app.js
@@ -23,6 +23,7 @@
   this.cutCopyOperation;
   this.cutCopySrcDir;
   this.cutCopyFiles;
+  this.fm_slideshow = false;
   this.dateien;
   this.cache = {}; // mustache template cache
 
@@ -103,7 +104,17 @@
   this.fm_hilfe = function() {
     window.open('/data/dok/wbx-doku.html#wbx-bedienung', '_blank');
   };
-
+  
+  this.fm_toggle_show_slideshow = function() {
+    if(self.fm_slideshow) {
+      //$('#m-toggle-slideshow').text('Diashow einschalten');
+      self.fm_slideshow = false;
+    } else {
+      //$('#m-toggle-slideshow').text('Diashow ausschalten');
+      self.fm_slideshow = true;
+    }
+  };
+  
   this.fm_view_slideshow = function() {
 
     // https://localhost:8443/file-cms/fotos/?o=ulrich/bilder/diashow/ordnername
@@ -347,7 +358,8 @@
     var elem = ev.target;
     if(self.modus == 'kacheln') {
       // Kacheln
-      var par = elem.parentElement;
+      //var par = elem.parentElement;
+      var par = elem.closest('.datei-figure');
       var dElem = par.querySelector('.dateiname');
       if(elem.classList.contains("icon-folder")) {
         // Ordner

--
Gitblit v1.9.3