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.searchTextOption{/lang}</label> |
9e11a63f | 2 | <textarea id="{$option->optionName}" name="values[{$option->optionName}]"{if !$searchOption} disabled{/if} cols="40" rows="10"{if $option->required} required{/if}>{$value}</textarea> |
8a2cc4b0 MS |
3 | |
4 | <script data-relocate="true"> | |
8a2cc4b0 MS |
5 | $(function() { |
6 | $('#search_{$option->optionName}').change(function(event) { | |
7 | if ($(event.currentTarget).prop('checked')) { | |
8 | $('#{$option->optionName}').enable(); | |
9 | } | |
10 | else { | |
11 | $('#{$option->optionName}').disable(); | |
12 | } | |
13 | }); | |
14 | }); | |
8a2cc4b0 | 15 | </script> |