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 | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/web/ui2/js/app.js b/web/ui2/js/app.js index bf11203..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 @@ -71,7 +72,7 @@ this.fm_init_uploader = function() { //console.log('init_uploader'); self.dateien = new Array(); - var dropzone = document.getElementById("dateien"); + var dropzone = document.getElementById("upload-target"); dropzone.ondragover = dropzone.ondragenter = function(event) { event.stopPropagation(); event.preventDefault(); @@ -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