Widget:chibiCostumeSwitcher: Difference between revisions
Jump to navigation
Jump to search
New approach for async loading |
Changed the way chibi costume IDs are determined |
||
Line 22: | Line 22: | ||
var selectBox = $(element); | var selectBox = $(element); | ||
var chibiCostumeName = selectBox.val(); | |||
if (chibiCostumeName != "") { | |||
chibiCostumeName = "_" + chibiCostumeName; | |||
chibiCostumeName = " | |||
} | } | ||
Line 46: | Line 45: | ||
</script> | </script> | ||
<select class="gf-droplist chibi-costume-switcher" autocomplete="off" onchange="swap_costume(this, '<!--{$target|escape:'html'}-->')" > | <select class="gf-droplist chibi-costume-switcher" autocomplete="off" onchange="swap_costume(this, '<!--{$target|escape:'html'}-->')" > | ||
<option value=" | <option value="" selected="selected">Default</option> | ||
<!--{foreach from=$costumes key=key item=item}--> | <!--{foreach from=$costumes key=key item=item}--> | ||
<!--{if $item neq ''}--><option value="<!--{$key|escape:'html'}-->"><!--{$item|escape:'html'}--></option><!--{/if}--> | <!--{if $item neq ''}--><option value="<!--{$key|escape:'html'}-->"><!--{$item|escape:'html'}--></option><!--{/if}--> |
Latest revision as of 23:26, 7 April 2020