MediaWiki:Common.js: Difference between revisions

From SRB2 Wiki
Jump to navigation Jump to search
(arrrg, all other JavaScript, go away!)
No edit summary
Line 1: Line 1:
//add "Justify paragraphs" CSS code based on setting in Special:Preferences
//add "Justify paragraphs" CSS code based on setting in Special:Preferences
if (mw.user.options.get('justify') === "1") {
jQuery( document ).ready( function( $ ) {
  mw.util.addCSS('#article, #bodyContent, #mw_content { text-align: justify; }');
  if (mw.user.options.get('justify') === "1") {
}
    mw.util.addCSS('#article, #bodyContent, #mw_content { text-align: justify; }');
  }
} );

Revision as of 01:54, 14 September 2011

//add "Justify paragraphs" CSS code based on setting in Special:Preferences
jQuery( document ).ready( function( $ ) {
  if (mw.user.options.get('justify') === "1") {
    mw.util.addCSS('#article, #bodyContent, #mw_content { text-align: justify; }');
  }
} );