MediaWiki:Gadget-TranslationAdder.js: diferència entre les revisions

Contingut suprimit Contingut afegit
Use of "wgNamespaceNumber" is deprecated. Use mw.config instead.
Use of "wgAction"/"wgTitle" is deprecated. Use mw.config instead.
Línia 769:
if (txt.indexOf(',') == -1 || forceComma) {
forceComma = false;
if (langmetadata.expectedCase(thiz.elements.lang.value, mw.config.get("wgTitle"), txt) || forceCase) {
forceCase = false;
return util.validateNoWikisyntax('traducció', true)(txt, error);
Línia 1.283:
addOnloadHook(function () {
var actions = window.location.toString().replace(/.*\?/, '&');
if (mw.config.get("wgAction ")!= 'view' || actions.indexOf('&printable=yes') > -1 || actions.indexOf('&diff=') > -1 || actions.indexOf('&oldid=') > -1 || mw.config.get("wgNamespaceNumber")!=0) {return;} //Només espai ppal.
// Check that we have not been disabled
var prefs = new CookiePreferences('EditorJs');