MediaWiki:Wikiminiatlas.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 440: Line 440:
   for( i = 0; i < l.length; ++i ) {
   for( i = 0; i < l.length; ++i ) {
   if( l[i].href === 'http://en.wikipedia.org/w/index.php?title=Template:Attached_KML/'+mw.config.get( 'wgPageName' )+'&action=raw' ) {
   if( l[i].href === 'http://en.wikipedia.org/w/index.php?title=Template:Attached_KML/'+mw.config.get( 'wgPageName' )+'&action=raw' ) {
    coordinates = 1;
     $.ajax({
     $.ajax({
     url: l[i].href,
     url: l[i].href,
Line 533: Line 534:
         $('<span id="coordinates">Map </span>').append(mapbutton).appendTo('#bodyContent');
         $('<span id="coordinates">Map </span>').append(mapbutton).appendTo('#bodyContent');
       }
       }
      coordinates = 1;
       }
       }
     }
     }
Anonymous user