From c591aabe4bfdea879a1804e525b40a697ba9afce Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 11 Nov 2005 21:01:42 +0100 Subject: JavaScript Fixes for the toolbar #628 darcs-hash:20051111200142-7ad00-158925aee01bc24378a8bd99ad27a6173ea085dd.gz --- lib/exe/js.php | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'lib/exe/js.php') diff --git a/lib/exe/js.php b/lib/exe/js.php index b8b8c6401..2e3fe8238 100644 --- a/lib/exe/js.php +++ b/lib/exe/js.php @@ -16,7 +16,6 @@ require_once(DOKU_INC.'inc/io.php'); if(!defined('SIMPLE_TEST')){ header('Content-Type: text/javascript; charset=utf-8'); js_out(); - js_dynamicout(); } @@ -130,21 +129,6 @@ function js_out(){ print $js; } -/** - * Adds some dynamic JavaScript using the readonly Session - * - * @author Andreas Gohr - */ -function js_dynamicout(){ - $edit = (bool) $_REQUEST['edit']; // edit or preview mode? - $write = (bool) $_REQUEST['write']; // writable? - $sig = (bool) $_REQUEST['sig']; // show sig button? - if($edit && $write && $sig){ - require_once(DOKU_INC.'inc/toolbar.php'); - toolbar_addsigbutton('toolbar'); - } -} - /** * Checks if a JavaScript Cache file still is valid * @@ -155,8 +139,8 @@ function js_cacheok($cache,$files){ if(!$ctime) return false; //There is no cache // some additional files to check - $files[] = DOKU_CONF.'dokuwiki.conf'; - $files[] = DOKU_CONF.'local.conf'; + $files[] = DOKU_CONF.'dokuwiki.php'; + $files[] = DOKU_CONF.'local.php'; $files[] = DOKU_CONF.'userscript.js'; $files[] = __FILE__; -- cgit v1.2.3