MediaWiki:Skin/Trommel.js: Unterschied zwischen den Versionen

aus Kamelopedia, der wüsten Enzyklopädie
Zur Navigation springen Zur Suche springen
K
Zeile 1: Zeile 1:
 
var kamgroup    = mw.config.get( 'wgUserGroups' );
 
var kamgroup    = mw.config.get( 'wgUserGroups' );
if (kamgroup.indexOf ("autoconfirmed") == -1 ){
+
if ($.inArray("autoconfirmed", kamgroup) == -1 ){
 
     window.location.href="http://kamelopedia.mormo.org/index.php/Kamelopedia:Hauptseite"
 
     window.location.href="http://kamelopedia.mormo.org/index.php/Kamelopedia:Hauptseite"
 
}
 
}

Version vom 12. September 2012, 17:23 Uhr

var kamgroup    = mw.config.get( 'wgUserGroups' );
if ($.inArray("autoconfirmed", kamgroup) == -1 ){
    window.location.href="http://kamelopedia.mormo.org/index.php/Kamelopedia:Hauptseite"
}