Commit | Line | Data |
---|---|---|
567b90a3 | 1 | <label><input type="checkbox" id="search_{$option->optionName}" name="searchOptions[{$option->optionName}]"{if $searchOption} checked="checked"{/if} /> {lang}wcf.user.option.searchRadioButtonOption{/lang}</label> |
b46e449b AE |
2 | <label class="selectDropdown"> |
3 | <select id="{$option->optionName}" name="values[{$option->optionName}]"{if !$searchOption} disabled="disabled"{/if}> | |
4 | {if !$allowEmptyValue|empty}<option value="">{lang}wcf.global.noSelection{/lang}</option>{/if} | |
5 | {foreach from=$selectOptions key=key item=selectOption} | |
6 | <option value="{$key}"{if $value == $key} selected="selected"{/if}>{lang}{@$selectOption}{/lang}</option> | |
7 | {/foreach} | |
8 | </select> | |
9 | </label> | |
567b90a3 MS |
10 | |
11 | <script data-relocate="true"> | |
12 | //<![CDATA[ | |
13 | $(function() { | |
14 | $('#search_{$option->optionName}').change(function(event) { | |
15 | if ($(event.currentTarget).prop('checked')) { | |
16 | $('#{$option->optionName}').enable(); | |
17 | } | |
18 | else { | |
19 | $('#{$option->optionName}').disable(); | |
20 | } | |
21 | }); | |
22 | }); | |
23 | //]]> | |
24 | </script> |