From 3260ed100522dc77187a0000dd6172c771ddad7d Mon Sep 17 00:00:00 2001 From: ulrich@undisclosed Date: Mon, 04 May 2020 16:52:05 +0000 Subject: [PATCH] compile auf post umgestellt --- web/ui/api.js | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/web/ui/api.js b/web/ui/api.js index e1a7bb3..40534fe 100644 --- a/web/ui/api.js +++ b/web/ui/api.js @@ -149,6 +149,16 @@ }); } +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); + fm_get_list(pfad); + }); +} + function fm_rename_file(fn, p, neuerName) { var m = '?c=de.uhilger.filecms.api.FileMgr&m=renameFile'; m = m + '&p=' + p; @@ -348,12 +358,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