Widget:StatTable: Difference between revisions
Jump to navigation
Jump to search
Changed to new pattern |
Added document-ready wait functionality as the MediaWiki does not wait for DOM |
||
Line 22: | Line 22: | ||
RLQ.push(['jquery', function () { | RLQ.push(['jquery', function () { | ||
$(document).ready(function() { | |||
if (document.getElementById("stat_table")) { | if (document.getElementById("stat_table")) { | ||
st_element = document.getElementById("stat_table"); | st_element = document.getElementById("stat_table"); | ||
Line 27: | Line 28: | ||
} | } | ||
swap_costume(); | swap_costume(); | ||
}); | |||
}]); | }]); | ||