From 5794c8f1f5e48dea6afe808e374265ca69f7419a Mon Sep 17 00:00:00 2001
From: ulrich
Date: Fri, 01 Jan 2021 11:39:12 +0000
Subject: [PATCH] Logging-Einstellungen ausgeschaltet und die MEthode zur Bestimmung des Daten-Ordners angepasst.

---
 web/ui/api.js |   23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/web/ui/api.js b/web/ui/api.js
index b9e0a46..0011250 100644
--- a/web/ui/api.js
+++ b/web/ui/api.js
@@ -256,6 +256,8 @@
         mode = 'xml';
       } else if(fname.endsWith('properties')) {
         mode = 'xml';
+      } else if(fname.endsWith('adoc')) {
+        mode = 'text/x-markdown';
       }
       fm_text_edit(resp, mode);
     } else {
@@ -287,6 +289,16 @@
 }
 
 /* -------- Compile / Build ------------- */
+
+function fm_ant_build() {
+  var m = '?c=de.uhilger.filecms.api.CompileService&m=antBuild&p=' + pfad;
+  var u = '../svc' + m;
+  fm_get(u, "text", function(resp) {
+    $('.system-out').empty();
+    $('.system-out').append('Ergebnis von Ant build: ' + resp);
+    fm_fusszeile_zeigen();
+  });
+}
 
 function fm_build_app() {
   var m = '?c=de.uhilger.filecms.api.CompileService&m=buildApp&p=' + pfad;
@@ -358,12 +370,19 @@
 
 function fm_compile(modeStr, callback) {
   var liste = fm_gewaehlte_dateien();
-  var m = '?c=de.uhilger.filecms.api.CompileService&m=compile&p=' + pfad + '&p=' + encodeURIComponent(liste) + 
-          '&p=' + modeStr;
+  var m = '?c=de.uhilger.filecms.api.CompileService&m=compile';//&p=' + pfad + '&p=' + encodeURIComponent(liste) + 
+          //'&p=' + modeStr;
   var u = '../svc' + m;
+  var data = 'p=' + pfad + '&p=' + encodeURIComponent(liste) + 
+          '&p=' + modeStr;
+  fm_post(u, data, "json", function(resp) {
+    callback(resp);
+  });
+  /*
   fm_get(u, "json", function(resp) {
     callback(resp);
   });
+  */
 }
 
 /* --------------- Bilder ------------------------- */

--
Gitblit v1.9.3