Style-prefixes (.enableOptions -> .jsEnablesOptions)
authorLuzifr <szekely@woltlab.com>
Fri, 10 Feb 2012 13:07:05 +0000 (14:07 +0100)
committerLuzifr <szekely@woltlab.com>
Fri, 10 Feb 2012 13:07:05 +0000 (14:07 +0100)
Please check if that still works. I have found no problems so far.

com.woltlab.wcf/template/booleanOptionType.tpl
com.woltlab.wcf/template/radioButtonOptionType.tpl
wcfsetup/install/files/acp/js/WCF.ACP.js
wcfsetup/install/files/acp/templates/booleanOptionType.tpl
wcfsetup/install/files/acp/templates/radioButtonOptionType.tpl
wcfsetup/install/files/acp/templates/userEmailAddressExport.tpl

index 52501107311d4799bffe961175e0d2831494c6f4..532f54a5c4512d4ad50497bac6f592adeaa12e2a 100644 (file)
@@ -1 +1 @@
-<input type="checkbox" id="{$option->optionName}" {if $value} checked="checked"{/if} name="values[{$option->optionName}]" value="1" {if $disableOptions || $enableOptions}class="enablesOptions" data-disable-options="[ {@$disableOptions}]" data-enable-options="[ {@$enableOptions}]" {/if} />
+<input type="checkbox" id="{$option->optionName}" {if $value} checked="checked"{/if} name="values[{$option->optionName}]" value="1" {if $disableOptions || $enableOptions}class="jsEnablesOptions" data-disable-options="[ {@$disableOptions}]" data-enable-options="[ {@$enableOptions}]" {/if} />
index 744a94841e719409ecf04f0bcf4cbe99cf699d99..f6cd3f719711f4dfca0269e54d6682cd0e3e1c87 100644 (file)
@@ -2,7 +2,7 @@
        <dl>
                {foreach from=$selectOptions key=key item=selectOption}
                        <dd>
-                               <label><input type="radio" name="values[{$option->optionName}]" value="{$key}" {if $value == $key} checked="checked"{/if} {if $disableOptions[$key]|isset || $enableOptions[$key]|isset}class="enablesOptions" data-disable-options="[ {@$disableOptions[$key]}]" data-enable-options="[ {@$enableOptions[$key]}]"{/if} /> {lang}{@$selectOption}{/lang}</label>
+                               <label><input type="radio" name="values[{$option->optionName}]" value="{$key}" {if $value == $key} checked="checked"{/if} {if $disableOptions[$key]|isset || $enableOptions[$key]|isset}class="jsEnablesOptions" data-disable-options="[ {@$disableOptions[$key]}]" data-enable-options="[ {@$enableOptions[$key]}]"{/if} /> {lang}{@$selectOption}{/lang}</label>
                        </dd>
                {/foreach}
        </dl>
index c6a0198e85e2999df58d5485ebcf8e7ea8183e48..ebd4407cc26aa94ebbf4b844922c3aadd3b5ed60 100644 (file)
@@ -527,7 +527,7 @@ WCF.ACP.Options.prototype = {
         * Initializes options.
         */
        init: function() {
-               $('.enablesOptions').each($.proxy(this._initOption, this));
+               $('.jsEnablesOptions').each($.proxy(this._initOption, this));
        },
        
        /**
index 52501107311d4799bffe961175e0d2831494c6f4..532f54a5c4512d4ad50497bac6f592adeaa12e2a 100644 (file)
@@ -1 +1 @@
-<input type="checkbox" id="{$option->optionName}" {if $value} checked="checked"{/if} name="values[{$option->optionName}]" value="1" {if $disableOptions || $enableOptions}class="enablesOptions" data-disable-options="[ {@$disableOptions}]" data-enable-options="[ {@$enableOptions}]" {/if} />
+<input type="checkbox" id="{$option->optionName}" {if $value} checked="checked"{/if} name="values[{$option->optionName}]" value="1" {if $disableOptions || $enableOptions}class="jsEnablesOptions" data-disable-options="[ {@$disableOptions}]" data-enable-options="[ {@$enableOptions}]" {/if} />
index 744a94841e719409ecf04f0bcf4cbe99cf699d99..f6cd3f719711f4dfca0269e54d6682cd0e3e1c87 100644 (file)
@@ -2,7 +2,7 @@
        <dl>
                {foreach from=$selectOptions key=key item=selectOption}
                        <dd>
-                               <label><input type="radio" name="values[{$option->optionName}]" value="{$key}" {if $value == $key} checked="checked"{/if} {if $disableOptions[$key]|isset || $enableOptions[$key]|isset}class="enablesOptions" data-disable-options="[ {@$disableOptions[$key]}]" data-enable-options="[ {@$enableOptions[$key]}]"{/if} /> {lang}{@$selectOption}{/lang}</label>
+                               <label><input type="radio" name="values[{$option->optionName}]" value="{$key}" {if $value == $key} checked="checked"{/if} {if $disableOptions[$key]|isset || $enableOptions[$key]|isset}class="jsEnablesOptions" data-disable-options="[ {@$disableOptions[$key]}]" data-enable-options="[ {@$enableOptions[$key]}]"{/if} /> {lang}{@$selectOption}{/lang}</label>
                        </dd>
                {/foreach}
        </dl>
index 641310a21e75d38ee3d62a295df583a3a1079f3f..76b95bde46ad8f8d4e4d566e9bc2534b88fbc1b2 100644 (file)
@@ -38,8 +38,8 @@
                                                
                                                <dl>
                                                        <dd><!-- ToDo: Definition List -->
-                                                               <li><label><input type="radio" name="fileType" value="csv" {if $fileType == 'csv'}checked="checked" {/if}class="enablesOptions" data-disable-options="[ ]" data-enable-options="[ 'separatorDiv', 'textSeparatorDiv' ]" /> {lang}wcf.acp.user.exportEmailAddress.fileType.csv{/lang}</label></li>
-                                                               <li><label><input type="radio" class="enablesOptions" name="fileType" value="xml" {if $fileType == 'xml'}checked="checked" {/if}data-disable-options="[ 'separatorDiv', 'textSeparatorDiv' ]" data-enable-options="[ ]" /> {lang}wcf.acp.user.exportEmailAddress.fileType.xml{/lang}</label></li>
+                                                               <li><label><input type="radio" name="fileType" value="csv" {if $fileType == 'csv'}checked="checked" {/if}class="jsEnablesOptions" data-disable-options="[ ]" data-enable-options="[ 'separatorDiv', 'textSeparatorDiv' ]" /> {lang}wcf.acp.user.exportEmailAddress.fileType.csv{/lang}</label></li>
+                                                               <li><label><input type="radio" class="jsEnablesOptions" name="fileType" value="xml" {if $fileType == 'xml'}checked="checked" {/if}data-disable-options="[ 'separatorDiv', 'textSeparatorDiv' ]" data-enable-options="[ ]" /> {lang}wcf.acp.user.exportEmailAddress.fileType.xml{/lang}</label></li>
                                                        </dd>
                                                </dl>
                                        </fieldset>