User:Frietjes/addcheckforunknownparameters.js: Difference between revisions

Content deleted Content added
per request
enforce loading of mediawiki.util
Line 2:
if(mw.config.get('wgNamespaceNumber') != -1 && document.getElementsByName('wpTextbox1')[0]) {
mw.loader.using(['mediawiki.util']).done( function() {
var portletlink = mw.util.addPortletLink('p-tb','#','Chk4unkwn','t-cfu');
$(portletlink).click(function(e) {
e.preventDefault();
wpBuildCheckForUnknownParameters();
});
});
}
// -------------------------------------------------------------------------------- //