From: Marcel Werk Date: Thu, 9 May 2013 12:43:38 +0000 (+0200) Subject: Fixed style editor issue X-Git-Tag: 2.0.0_Beta_1~223 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=46818b6a20ae81f317398e3add6efef337974be4;p=GitHub%2FWoltLab%2FWCF.git Fixed style editor issue --- diff --git a/wcfsetup/install/files/acp/templates/styleAdd.tpl b/wcfsetup/install/files/acp/templates/styleAdd.tpl index cd19b73b70..a1f213def2 100644 --- a/wcfsetup/install/files/acp/templates/styleAdd.tpl +++ b/wcfsetup/install/files/acp/templates/styleAdd.tpl @@ -39,6 +39,11 @@ 'wcf.acp.style.copyStyle.confirmMessage': '{lang}wcf.acp.style.copyStyle.confirmMessage{/lang}' }); {/if} + + $('.jsUnitSelect').change(function(event) { + var $target = $(event.currentTarget); + $target.prev().attr('step', ($target.val() == 'em' ? '0.01' : '1')); + }).trigger('change'); }); //]]> @@ -295,7 +300,7 @@
- {foreach from=$availableUnits item=unit} {/foreach} @@ -306,7 +311,7 @@
- {foreach from=$availableUnits item=unit} {/foreach} @@ -332,7 +337,7 @@
- {foreach from=$availableUnits item=unit} {/foreach}