tips:double-click-to-edit
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tips:double-click-to-edit [2015-04-14 05:57] – 1.39.12.219 | tips:double-click-to-edit [2016-03-12 15:42] (current) – reverted hint to save js in template folder (not future-proof and only per template) and fixed reference to js under conf ach | ||
---|---|---|---|
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. | ||
- | 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: | + | 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: |
- | <code javascript conf/script.js> | + | <code javascript conf/userscript.js> |
jQuery(document).ready(function(){ | jQuery(document).ready(function(){ | ||
Line 31: | Line 31: | ||
- | Tested on Release | + | Tested on Release |
The functionality of the code has been commented inline. Submit any improvements and fixes you may have. | The functionality of the code has been commented inline. Submit any improvements and fixes you may have. | ||
For queries, contact the author on http:// | For queries, contact the author on http:// |
tips/double-click-to-edit.1428983844.txt.gz · Last modified: 2015-04-14 05:57 by 1.39.12.219