Difference between revisions of "User:Loco87/common.js"
Wikisimpsons - The Simpsons Wiki
(Created page with "// Blank the deletion summary if it has some content (such as "content was"...or anything else, really) // Adapted from http://www.mediawiki.org/wiki/MediaWiki:Gadget-CleanDel...") |
(No difference)
|
Latest revision as of 17:32, June 2, 2014
// Blank the deletion summary if it has some content (such as "content was"...or anything else, really)
// Adapted from http://www.mediawiki.org/wiki/MediaWiki:Gadget-CleanDeleteReasons.js
jQuery( document ).ready( function() {
if ( mw.config.get( 'wgAction' ) == 'delete' ) {
var wpReason = document.getElementById( 'wpReason' );
if ( !wpReason ) {
return;
}
if ( wpReason.value !== '' ) {
wpReason.value = '';
}
}
} );