Jump to content

MediaWiki:Common.js: Difference between revisions

From Emps-World Wiki
No edit summary
No edit summary
Line 5: Line 5:
     $(".item-bonus-table").each(function() {
     $(".item-bonus-table").each(function() {
         var table = $(this);
         var table = $(this);
         table.find("th").text("table header test");
        var itemId = $(this).attr("name").replace("item-");
         table.find("th").text("item "+itemId);
     });
     });


});
});

Revision as of 17:52, 19 August 2018

/* Any JavaScript here will be loaded for all users on every page load. */


$(document).ready(function() {
    $(".item-bonus-table").each(function() {
        var table = $(this);
        var itemId = $(this).attr("name").replace("item-");
        table.find("th").text("item "+itemId);
    });

});