MediaWiki:Common.js: Difference between revisions

correct jQuery syntax for multiple values by enclosing with curly braces
(Center the page title on Main Page and Guided Research for Online Records)
(correct jQuery syntax for multiple values by enclosing with curly braces)
Line 2: Line 2:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */


if ( /Main_Page/.test(document.location.href) || /Guided_Research_for_Online_Records/.test(document.location.href) ) {
if ( ( /Main_Page/.test(document.location.href) ) || ( /Guided_Research_for_Online_Records/.test(document.location.href) ) ) {
     $("#content h1").css("border", "0", "textAlign", "center");
     $("#content h1").css({"border":0, "text-align":"center"});
}
}


53,890

edits