Widget:chibiCommander: Difference between revisions
Jump to navigation
Jump to search
Fixing the rendering area |
Moved the select script |
||
Line 2: | Line 2: | ||
RLQ.push(['jquery', function () { | RLQ.push(['jquery', function () { | ||
$(document).ready(function() { | $(document).ready(function() { | ||
$('select.commander-sim-option').on('change', function() { | |||
var selectedHead = $('.commander-sim-option.head option:selected').val(); | |||
var selectedBody = $('.commander-sim-option.body option:selected').val(); | |||
var selectedFeet = $('.commander-sim-option.feet option:selected').val(); | |||
window.loadCommander(baseview, selectedHead, selectedBody, selectedFeet); | |||
}); | |||
// Let's make sure the correct values are shown | // Let's make sure the correct values are shown | ||
$('.commander-sim-option').first().change(); | $('.commander-sim-option').first().change(); | ||
Line 36: | Line 43: | ||
<option value="Commander_Fury_Fantasy_female_feet_chibi_skel.skel;Commander_Fury_Fantasy_female_feet_chibi_atlas.txt;Commander_Fury_Fantasy_female_feet_color_4_chibi_spritemap.png">Fury Fantasy (f) 4</option> | <option value="Commander_Fury_Fantasy_female_feet_chibi_skel.skel;Commander_Fury_Fantasy_female_feet_chibi_atlas.txt;Commander_Fury_Fantasy_female_feet_color_4_chibi_spritemap.png">Fury Fantasy (f) 4</option> | ||
</select> | </select> | ||
</includeonly><noinclude>{{#widget:chibiCommander}}</noinclude> | </includeonly><noinclude>{{#widget:chibiCommander}}</noinclude> |
Revision as of 00:13, 12 November 2019