MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 295: Line 295:
     $('.region-map img[alt="About this image"]').attr('src', 'https://elwiki.net/wiki/images/1/1f/UI_-_Help.png').show();
     $('.region-map img[alt="About this image"]').attr('src', 'https://elwiki.net/wiki/images/1/1f/UI_-_Help.png').show();


     if (localStorage.getItem('current-server') !== null) {
      
        $('.boss-timer-section .tabber-tab:contains("' + localStorage.getItem('current-server') + '")').click();
    } else {
        $('.boss-timer-section .tabber-tab:eq(0)').click();
    }
});
});


Line 316: Line 312:
         window.open(window.location.origin + link)
         window.open(window.location.origin + link)
     });
     });
    if (localStorage.getItem('current-server') !== null) {
        $('.boss-timer-section .tabber-tab:contains("' + localStorage.getItem('current-server') + '")').click();
    } else {
        $('.boss-timer-section .tabber-tab:eq(0)').click();
    }


});
});