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

Content deleted Content added
m Mr. Stradivarius moved page MediaWiki:Common.js/edit.js to MediaWiki:Gadget-extra-toolbar-buttons-core.js without leaving a redirect: turn this into a ResourceLoader module per [[Special:PermaLink/735726304#Convert watchlist notices into a Reso...
That fragment belonged in Common.js and was incorrectly moved. Moved it back: https://en.wikipedia.org/w/index.php?title=MediaWiki:Common.js&diff=786940372&oldid=782857452
Line 111:
}
} );
 
/**
* Fix edit summary prompt for undo
*
* Fixes the fact that the undo function combined with the "no edit summary prompter"
* causes problems if leaving the edit summary unchanged.
* Added by [[User:Deskana]], code by [[User:Tra]].
* See also [[bugzilla:8912]].
*/
$(function () {
if (document.___location.search.indexOf('undo=') !== -1 && document.getElementsByName('wpAutoSummary')[0]) {
document.getElementsByName('wpAutoSummary')[0].value = '1';
}
});