MediaWiki:Gadget-extra-toolbar-buttons-core.js: Difference between revisions

Content deleted Content added
m missed one
m format comment
Line 101:
 
 
/** fixFix edit summary prompt for undo ******************************************
* this code fixesFixes the fact that the undo function combined with the "no edit summary prompter"
* causes problems if leaving the edit summary unchanged.
* this was addedAdded by [[User:Deskana]], code by [[User:Tra]].
* edit summary unchanged
* See also [[bugzilla:8912]].
* this was added by [[User:Deskana]], code by [[User:Tra]]
* see bug 8912
*/
addOnloadHook(function () {
if (document.___location.search.indexOf("undo=") != -1 && document.getElementsByName('wpAutoSummary')[0]) {
&& document.getElementsByName('wpAutoSummary')[0]) {
document.getElementsByName('wpAutoSummary')[0].value='1';
}