From 20d062ca5220daf6606e2b1bcdd73d84eebafa45 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 8 Oct 2005 19:54:04 +0200 Subject: first go on unobstrusive javascript, new toolbar darcs-hash:20051008175404-7ad00-cd640de7660825b19d5e863cc8caf5467d59b055.gz --- inc/template.php | 44 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 5 deletions(-) (limited to 'inc/template.php') diff --git a/inc/template.php b/inc/template.php index e04998444..8c84515c2 100644 --- a/inc/template.php +++ b/inc/template.php @@ -207,6 +207,7 @@ function tpl_metaheaders(){ ptln(" var alertText = '".str_replace('\\\\n','\\n',addslashes($lang['qb_alert']))."'",$it); ptln(" var notSavedYet = '".str_replace('\\\\n','\\n',addslashes($lang['notsavedyet']))."'",$it); ptln(" var DOKU_BASE = '".DOKU_BASE."'",$it); + ptln('',$it); // load the default JavaScript files @@ -217,11 +218,6 @@ function tpl_metaheaders(){ ptln('',$it); - // load spellchecker script if wanted - if($conf['spellchecker'] && ($ACT=='edit' || $ACT=='preview')){ - ptln('',$it); - } // dom tool tip library, for insitu footnotes ptln('',$it); + // add size control + ptln('',$it); + + + // editing functions + if(($ACT=='edit' || $ACT=='preview') && $INFO['writable']){ + // load toolbar functions + ptln('',$it); + + // load spellchecker functions if wanted + if($conf['spellchecker']){ + ptln('',$it+2); + } + + ptln('',$it); + } + // plugin stylesheets and Scripts plugin_printCSSJS(); } -- cgit v1.2.3