source: documentation/trunk/packages/dokuwiki-2011-05-25a/lib/plugins/publish/script.js@ 25027

Last change on this file since 25027 was 25027, checked in by jmt12, 12 years ago

Adding the packages directory, and within it a configured version of dokuwiki all ready to run

File size: 627 bytes
Line 
1//Autocomment for Approve Button
2function approval_checkbox(text) {
3 if(text == "") { return true; }
4 var cb=document.getElementById('approved');
5 if(cb == null) { return true; } //huh?
6 if(!cb.checked) { return true; } //this only fires on set
7 var sum=document.getElementById('edit__summary');
8 if(sum == null) { return true; } //huh?
9 if(sum.value != '') { return true; } // already set
10 sum.value = text;
11
12 // in case enforced Comments are installed
13 var btn = document.getElementById('edbtn__save');
14 if(btn == null) { return true; } //huh?
15 btn.className = 'button';
16 btn.disabled = false;
17
18 return true;
19}
Note: See TracBrowser for help on using the repository browser.