Commit | Line | Data |
---|---|---|
6f2bc235 | 1 | <label><input type="checkbox" id="search_{$option->optionName}" name="searchOptions[{$option->optionName}]"{if $searchOption} checked{/if}> {lang}wcf.user.option.searchRadioButtonOption{/lang}</label> |
cf5c25f8 | 2 | {foreach from=$selectOptions key=key item=selectOption} |
6f2bc235 | 3 | <label><input type="checkbox" name="values[{$option->optionName}][]" value="{$key}" {if $key|in_array:$value} checked{/if}{if !$searchOption} disabled{/if}> {lang}{@$selectOption}{/lang}</label> |
cf5c25f8 AE |
4 | {/foreach} |
5 | ||
6 | <script data-relocate="true"> | |
cf5c25f8 AE |
7 | $(function() { |
8 | $('#search_{$option->optionName}').change(function(event) { | |
9 | if ($(event.currentTarget).prop('checked')) { | |
10 | $('input[name="values[{$option->optionName}][]"]').enable(); | |
11 | } | |
12 | else { | |
13 | $('input[name="values[{$option->optionName}][]"]').disable(); | |
14 | } | |
15 | }); | |
16 | }); | |
cf5c25f8 | 17 | </script> |