MediaWiki:Gadget-HotInterwiki.js: відмінності між версіями

Вилучено вміст Додано вміст
Krenair (обговорення | внесок)
Maintenance: mw:RL/MGU / mw:RL/JD - addOnloadHook is deprecated
мНемає опису редагування
 
Рядок 47:
// Запуск
if(mw.config.get('wgNamespaceNumber')>-1&&document.URL.indexOf("printable=yes")==-1&&mw.config.get('wgAction')!="history"){
// Importation styles CSS
importStylesheetURImw.loader.load('//fr.wikipedia.org/w/index.php?title=Utilisateur:Dr Brains/HotInterwiki.css&action=raw&ctype=text/css');
// Lancement
$(HotInterwiki_Init);
Рядок 259:
function HotInterwiki_Edit(IWtoRemove, IwToAdd){
var URL = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + mw.config.get('wgPageName').replace(/&/g, "%26") + '&action=edit';
var NuovaQuery = sajax_init_object();
NuovaQuery.open("GET", URL, true);