From 012d5f911dc6f0e5a64f9cebad9aeeebaa50ef27 Mon Sep 17 00:00:00 2001 From: ulrich Date: Sat, 23 Jan 2021 13:07:59 +0000 Subject: [PATCH] Bedienoberflaeche komplett nach ui2 ueberfuehrt, Bootstrap und FontAwesome komplett ausgebaut --- web/ui2/js/app.js | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/web/ui2/js/app.js b/web/ui2/js/app.js index 5817d1b..f28d721 100644 --- a/web/ui2/js/app.js +++ b/web/ui2/js/app.js @@ -783,6 +783,13 @@ this.fm_menu_html_export = function() { self.fm_export_html(); }; + + this.sued_schliessen = function() { + var suedDiv = document.querySelector('.sued'); + document.querySelector('.close-btn-fuss').removeEventListener('click', this); + suedDiv.classList.remove('sued-open'); + suedDiv.style.height = '0'; + }; /* --------- Dateifunktionen Ende ---------- */ @@ -943,17 +950,54 @@ //console.log(html); var elem = document.querySelector('.sued'); elem.innerHTML = html; + document.querySelector('.close-btn-fuss').addEventListener('click', self.sued_schliessen); + + /* document.querySelector('.close-btn-fuss').addEventListener('click', function(){ var suedDiv = document.querySelector('.sued'); document.querySelector('.close-btn-fuss').removeEventListener('click', this); suedDiv.classList.remove('sued-open'); suedDiv.style.height = '0'; }); + */ self.fm_fusszeile_zeigen(); self.fm_get_list(self.pfad); }); }); }; + + this.fm_pack_folder = function() { + //var liste = fm_gewaehlte_dateien(); + var m = '?c=de.uhilger.filecms.api.FileMgr&m=packFolder&p=' + self.pfad; + var u = '../svc' + m; + self.fm_get(u, "text", function(resp) { + // console.log('deleteFiles gab folgendes zurueck: ' + resp); + self.fm_get_list(self.pfad); + }); + }; + + this.fm_export_html = function() { + var m = '?c=de.uhilger.filecms.api.HtmlExportService&m=exportHtml'; + m = m + '&p=' + self.pfad; + var u = '../svc' + m; + self.fm_get(u, "text", function(resp) { + var mtx = new Meldung('Rueckmeldung vom HTML-Export: ' + resp); + //console.log(mtx); + self.html_erzeugen("data/tpl/fuss.tpl", mtx, function(html) { + var elem = document.querySelector('.sued'); + elem.innerHTML = html; + document.querySelector('.close-btn-fuss').addEventListener('click', self.sued_schliessen); + self.fm_fusszeile_zeigen(); + //self.fm_get_list(self.pfad); + /* + $('.system-out').empty(); + $('.system-out').append('Rueckmeldung vom HTML-Export: ' + resp); + fm_fusszeile_zeigen(); + */ + }); + }); + }; + /* -------- upload ----------- */ -- Gitblit v1.9.3