From 46818b6a20ae81f317398e3add6efef337974be4 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 9 May 2013 14:43:38 +0200 Subject: [PATCH] Fixed style editor issue --- wcfsetup/install/files/acp/templates/styleAdd.tpl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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} -- 2.20.1