From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
(testing new JS)
(maybe this needs to be outside the addOnloadHook() call)
Line 5: Line 5:
// Widen the edit summary box on edit view (?action=edit) and on preview (?action=submit)
// Widen the edit summary box on edit view (?action=edit) and on preview (?action=submit)
document.getElementById( 'wpSummary' ).setAttribute( 'size', 145 );
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;
}
}
}
}
);
);
// 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:42, 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;
		}
	}
}