Quantcast
Channel: DokuWiki
Viewing all articles
Browse latest Browse all 25292

tips:double-click-to-edit - reverted hint to save js in template folder (not future-proof and ...

$
0
0
1454959374current
Line 3:Line 3:
 The javascript snippet below adds the ability to double-click a section of an article to go straight to the edit mode for that section. The javascript snippet below adds the ability to double-click a section of an article to go straight to the edit mode for that section.
  
-<del>It is easy to add it. Just create a **script.js** file under your conf directory (i.e. ./conf/script.js) and append the following code snippet to it:</del>+It is easy to add it. Just create a **userscript.js** file under your conf directory (i.e. ./conf/userscript.js) and append the following code snippet to it:
  
-Open the **script.js** under "$WIKI/lib/tpl/dokuwiki/" and append the following code. +<code javascript conf/userscript.js>
- +
-<code javascript conf/script.js>+
 jQuery(document).ready(function(){ jQuery(document).ready(function(){
  
Line 33:Line 31:
  
  
-Tested on Release <del>2012-01-25b "Angua"</del> 2015-08-10a "Detritus"+Tested on Release 2015-08-10a "Detritus"
  
  

Viewing all articles
Browse latest Browse all 25292