Widget:costumeSwitcher: 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 1: | Line 1: | ||
<includeonly><script> | <includeonly><script> | ||
RLQ.push(['jquery', function () { | RLQ.push(['jquery', function () { | ||
$(document).ready(function() { | |||
// Let's make sure the correct values are shown | // Let's make sure the correct values are shown | ||
$('.modswitcher').change(); | $('.modswitcher').change(); | ||
}); | |||
}]); | }]); | ||