From 6413b48bad846466999f3ba6e3235bbddeb37a3e Mon Sep 17 00:00:00 2001
From: ulrich <undisclosed>
Date: Sat, 28 Dec 2019 19:23:37 +0000
Subject: [PATCH] Zeilenumbruch im Texteditor eingeschaltet

---
 web/ui/api.js |   40 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/web/ui/api.js b/web/ui/api.js
index 5c79a96..b9e0a46 100644
--- a/web/ui/api.js
+++ b/web/ui/api.js
@@ -129,12 +129,29 @@
     $('.breadcrumb-item').click(fm_bc_click);
     $('#ansicht').click(fm_ansicht_umschalten);
     fm_set_modus();
+    
+    if(fm_slideshow) {
+      $("[data-fancybox]").fancybox({
+        loop: true,
+        idleTime: 2
+      });
+    }
   });
 }
 
 function fm_del_files() {
   var liste = fm_gewaehlte_dateien();
   var m = '?c=de.uhilger.filecms.api.FileMgr&m=deleteFiles&p=' + pfad + '&p=' + encodeURIComponent(liste);
+  var u = '../svc' + m;
+  fm_get(u, "text", function(resp) {
+    // console.log('deleteFiles gab folgendes zurueck: ' + resp);
+    fm_get_list(pfad);
+  });
+}
+
+function fm_pack_folder() {
+  //var liste = fm_gewaehlte_dateien();
+  var m = '?c=de.uhilger.filecms.api.FileMgr&m=packFolder&p=' + pfad;
   var u = '../svc' + m;
   fm_get(u, "text", function(resp) {
     // console.log('deleteFiles gab folgendes zurueck: ' + resp);
@@ -184,6 +201,17 @@
     $('.system-out').append('Rueckmeldung vom Entpacken: ' + resp);
     fm_fusszeile_zeigen();
     fm_get_list(pfad);
+  });  
+}
+
+function fm_export_html() {
+  var m = '?c=de.uhilger.filecms.api.HtmlExportService&m=exportHtml';
+  m = m + '&p=' + pfad; 
+  var u = '../svc' + m;
+  fm_get(u, "text", function(resp) {
+    $('.system-out').empty();
+    $('.system-out').append('Rueckmeldung vom HTML-Export: ' + resp);
+    fm_fusszeile_zeigen();
   });  
 }
 
@@ -352,6 +380,18 @@
   });  
 }
 
+function fm_menu_rotate() {
+  var gewaehlte = $('.datei-gewaehlt');
+  var fname = $(gewaehlte[0]).text();
+  var m = '?c=de.uhilger.filecms.api.FileMgr&m=bildRotieren';
+  m = m + '&p=' + pfad; 
+  m = m + '&p=' + fname; 
+  var u = '../svc' + m;
+  fm_get(u, "text", function(resp) {
+    fm_get_list(pfad);
+  });  
+}
+
 /* -------- upload ----------- */
 
 function sendFile(datei) {

--
Gitblit v1.9.3