From f28a480bf94f15da57654774b492890fdb5f01cd Mon Sep 17 00:00:00 2001 From: gRoussac Date: Tue, 30 Jul 2013 20:36:38 +0200 Subject: [PATCH] // remove console.log --- .../template/controllers/modules_positions/form.tpl | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/modules_positions/form.tpl b/admin-dev/themes/default/template/controllers/modules_positions/form.tpl index 60c2a3bcf..dbce5cbc7 100644 --- a/admin-dev/themes/default/template/controllers/modules_positions/form.tpl +++ b/admin-dev/themes/default/template/controllers/modules_positions/form.tpl @@ -90,7 +90,6 @@ function position_exception_listchange(obj) { - console.log(obj); var shopID = obj.attr('id').replace(/\D/g, ''); var str = ''; obj.find('option:selected').each(function(){ @@ -101,17 +100,13 @@ str = str.substr(0, str.length - 2); obj.parent().find('#em_text_' + shopID).val(str); } - $(document).ready(function() - { + $('form[id="hook_module_form"] input[id^="em_text_"]').on('change', function(){ - console.log($(this)); position_exception_textchange($(this)); - }).change(); - + }).change(); + $('form[id="hook_module_form"] select[id^="em_list_"]').on('change', function(){ + position_exception_listchange($(this)); }); - $('form[id="hook_module_form"] select[id^="em_list_"]').on('change', function(){ - position_exception_listchange($(this)); - }); }); //]]> \ No newline at end of file