Diferència entre revisions de la pàgina «MediaWiki:Gadget-traduccions/editor.js»

Use of "wgAction"/"wgTitle" is deprecated. Use mw.config instead.
(Use of "wgNamespaceNumber" is deprecated. Use mw.config instead.)
(Use of "wgAction"/"wgTitle" is deprecated. Use mw.config instead.)
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);
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');
14.850

modificacions