Commit | Line | Data |
---|---|---|
8a2cc4b0 MS |
1 | <label><input type="checkbox" id="search_{$option->optionName}" name="searchOptions[{$option->optionName}]"{if $searchOption} checked="checked"{/if} /> {lang}wcf.user.option.searchTextOption{/lang}</label> |
2 | <textarea id="{$option->optionName}" name="values[{$option->optionName}]"{if !$searchOption} disabled="disabled"{/if} cols="40" rows="10">{$value}</textarea> | |
3 | ||
4 | <script data-relocate="true"> | |
5 | //<![CDATA[ | |
6 | $(function() { | |
7 | $('#search_{$option->optionName}').change(function(event) { | |
8 | if ($(event.currentTarget).prop('checked')) { | |
9 | $('#{$option->optionName}').enable(); | |
10 | } | |
11 | else { | |
12 | $('#{$option->optionName}').disable(); | |
13 | } | |
14 | }); | |
15 | }); | |
16 | //]]> | |
17 | </script> |