« MediaWiki:Common.js » : différence entre les versions

Contenu supprimé Contenu ajouté
Dr Brains (discuter | contributions)
m essai de correction fonction GeoBox_Toggle()
Dr Brains (discuter | contributions)
suite
Ligne 892 :
* Script pour alterner entre plusieurs cartes de géolocalisation
*/
 
function SpecialAlert(text){
if(mw.config.get('wgUserName') !=null && mw.config.get('wgUserName') === "Dr Brains"){
alert(text);
}
}
 
 
function GeoBox_Init(Element){
Ligne 936 ⟶ 943 :
if( (!ImageToggle) || (!Links) || (!Geobox) || (!Link) ) return;
var AllGeoboxes = $( ImageToggle ).find( '.geobox' ).get();
SpecialAlert(AllGeoboxes.length);
for(var a=0,l=AllGeoboxes.length;a<l;a++){
var ThisgeoBox = AllGeoboxes[a];
if(ThisgeoBox.id === Geobox.id){
SpecialAlert("found id : " +ThisgeoBox.id);
ThisgeoBox.style.display = "";
}else{
Ce document provient de « https://fr.wikipedia.org/wiki/MediaWiki:Common.js ».