User:Solar Dragon/common.js
Wikisimpsons - The Simpsons Wiki
< User:Solar Dragon
Revision as of 09:55, August 23, 2013 by Solar Dragon (talk | contribs) (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...")
// 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 = '';
}
}
} );