Jump to content

MediaWiki:Common.js: Difference between revisions

removed conditional on the loading of /search.js because the conditional load is in that file now
(added JS support for dynamic locale-based date format)
(removed conditional on the loading of /search.js because the conditional load is in that file now)
Line 22: Line 22:
/** &withJS= URL parameter *******
/** &withJS= URL parameter *******
  * Allow to try custom scripts from MediaWiki space  
  * Allow to try custom scripts from MediaWiki space  
  * without editing [[Special:Mypage/monobook.js]]
  * without editing [[Special:Mypage/skinname.js]]
  */
  */
var extraJS = getURLParamValue("withJS");
var extraJS = getURLParamValue("withJS");
Line 31: Line 31:


// TODO: Get this working again
// TODO: Get this working again
/* If we're on the Search page, load the script that augments that page */
mw.loader.load('/w/index.php?title=MediaWiki:Common.js/search.js&action=raw&ctype=text/javascript');
if (mw.config.get('wgPageName') === 'Special:Search')
{
    mw.loader.load('/w/index.php?title=MediaWiki:Common.js/search.js&action=raw&ctype=text/javascript');
}


/**
/**