MediaWiki:Common.js: Unterschied zwischen den Versionen

MediaWiki-Schnittstellenseite
(Die Seite wurde neu angelegt: „$('li#pt-anon_oauth_login a').click(function(){ articlePath = mw.config.get('wgArticlePath'); url = articlePath.replace('$1', 'Spezial:OAuth2Client/redirect?returnto=Spezial:OAuth2Client/close'); var left = (screen.width/2) - 200; var above = (screen.height/2) - 200; newwindow = window.open(url, "_blank", "resizable=yes, scrollbars=yes, titlebar=yes, width=400, height=400, top="+above+", left="+left); return false; }) if (mw.config.get('wgTitle') =…“)
 
(Die Seite wurde geleert.)
Markierung: Geleert
 
Zeile 1: Zeile 1:
$('li#pt-anon_oauth_login a').click(function(){
articlePath = mw.config.get('wgArticlePath');
url = articlePath.replace('$1', 'Spezial:OAuth2Client/redirect?returnto=Spezial:OAuth2Client/close');
var left = (screen.width/2) - 200;
var above = (screen.height/2) - 200;
newwindow = window.open(url, "_blank", "resizable=yes, scrollbars=yes, titlebar=yes, width=400, height=400, top="+above+", left="+left);
return false;
})


if (mw.config.get('wgTitle') == 'OAuth2Client/close') {
window.opener.location.reload();
window.close();
}

Aktuelle Version vom 28. April 2024, 19:07 Uhr