From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
(some JS to widen the edit summary box on edit and preview views so that I can actually see what I'm typing in there ;-))
 
(testing new JS)
Line 1: Line 1:
// Widen the edit summary box on edit view (?action=edit) and on preview (?action=submit)
// Edit page JS
if ( wgAction == 'edit' || wgAction == 'submit' ) {
if ( wgAction == 'edit' || wgAction == 'submit' ) {
addOnloadHook( function() { document.getElementById( 'wpSummary' ).setAttribute( 'size', 145 ) } );
addOnloadHook(
function() {
// Widen the edit summary box on edit view (?action=edit) and on preview (?action=submit)
document.getElementById( 'wpSummary' ).setAttribute( 'size', 145 );
// Oh look, someone's trying to be funny
if ( typeof( check_edit_summary ) == 'function' ) {
function check_edit_summary( event ) {
return true;
}
}
}
);
}
}

Revision as of 15:41, 6 June 2011

// Edit page JS
if ( wgAction == 'edit' || wgAction == 'submit' ) {
	addOnloadHook(
		function() {
			// Widen the edit summary box on edit view (?action=edit) and on preview (?action=submit)
			document.getElementById( 'wpSummary' ).setAttribute( 'size', 145 );
			// Oh look, someone's trying to be funny
			if ( typeof( check_edit_summary ) == 'function' ) {
				function check_edit_summary( event ) {
					return true;
				}
			}
		}
	);
}