diff options
-rw-r--r-- | themes/smartpocket/admin/admin.tpl | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/themes/smartpocket/admin/admin.tpl b/themes/smartpocket/admin/admin.tpl index e903622fd..d572bcf2e 100644 --- a/themes/smartpocket/admin/admin.tpl +++ b/themes/smartpocket/admin/admin.tpl @@ -12,13 +12,7 @@ input[type=checkbox] { {footer_script}{literal} jQuery(document).ready(function() { jQuery('form li label input[type=checkbox]').change(function() { - var graphicalCheckbox = jQuery(this).parent().find('.graphicalCheckbox'); - if (jQuery(this).is(':checked')) { - jQuery(graphicalCheckbox).removeClass('icon-check-empty').addClass('icon-check'); - } - else { - jQuery(graphicalCheckbox).removeClass('icon-check').addClass('icon-check-empty'); - } + jQuery(this).prev().toggleClass('icon-check icon-check-empty'); }); }); {/literal}{/footer_script} |