From e4fec9e56c5cc32b38dc471a57e8844d32ec0b4f Mon Sep 17 00:00:00 2001 From: ulrich <undisclosed> Date: Sat, 03 Mar 2018 09:59:19 +0000 Subject: [PATCH] Bildbetrachtung fuer oeffentliche Ordner hinzugefuegt --- web/ui/ui.js | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/web/ui/ui.js b/web/ui/ui.js index 988d167..ca6a3f8 100644 --- a/web/ui/ui.js +++ b/web/ui/ui.js @@ -35,6 +35,7 @@ var DATA_DIR = "$daten"; var WWW_DIR = "www"; var compilerIssues; +var fm_slideshow = false; function fm_init() { $("#mce-editor").hide(); @@ -63,6 +64,7 @@ $('#m-copy').on('click', fm_menu_copy); $('#m-paste').on('click', fm_menu_paste); $('#m-shrink').on('click', fm_menu_shrink); + $('#m-toggle-slideshow').on('click', fm_toggle_show_slideshow); $('#m-test').on('click', fm_menu_test); $('#m-test-2').on('click', fm_menu_compile); $('#m-test-3').on('click', fm_menu_compile_all); @@ -86,6 +88,16 @@ loc = window.location.protocol + '//' + window.location.host; } +function fm_toggle_show_slideshow() { + if(fm_slideshow) { + $('#m-toggle-slideshow').text('Diashow nicht zeigen'); + fm_slideshow = false; + } else { + $('#m-toggle-slideshow').text('Diashow zeigen'); + fm_slideshow = true; + } +} + function fm_resize_editor() { window.clearTimeout(tmo); tmo = window.setTimeout(function () { -- Gitblit v1.9.3