MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
$(document).ready(function() {
$(document).ready(function() {
$('a[href*="Investigator:"]').each(function() {
$('a[href*="Investigator:"]').each(function() {
         alert("Investigator Link Found");
         if(mw.config.wgUserId === null){
          $(this).hide();
}
});
});




});
});

Revision as of 19:10, 4 December 2018

$(document).ready(function() {
$('a[href*="Investigator:"]').each(function() {
        if(mw.config.wgUserId === null){
           $(this).hide();
}
});


});