// remove console.log

This commit is contained in:
gRoussac committed 2013-07-30 20:36:38 +02:00
1 parent f606cb4efb
commit f28a480bf9
1 file changed
+2 -7
@@ -90,7 +90,6 @@
function position_exception_listchange(obj) function position_exception_listchange(obj)
{ {
console.log(obj);
var shopID = obj.attr('id').replace(/\D/g, ''); var shopID = obj.attr('id').replace(/\D/g, '');
var str = ''; var str = '';
obj.find('option:selected').each(function(){ obj.find('option:selected').each(function(){
@@ -101,17 +100,13 @@
str = str.substr(0, str.length - 2); str = str.substr(0, str.length - 2);
obj.parent().find('#em_text_' + shopID).val(str); obj.parent().find('#em_text_' + shopID).val(str);
} }
$(document).ready(function()
{
$('form[id="hook_module_form"] input[id^="em_text_"]').on('change', function(){ $('form[id="hook_module_form"] input[id^="em_text_"]').on('change', function(){
console.log($(this));
position_exception_textchange($(this)); position_exception_textchange($(this));
}).change(); }).change();
});
$('form[id="hook_module_form"] select[id^="em_list_"]').on('change', function(){ $('form[id="hook_module_form"] select[id^="em_list_"]').on('change', function(){
position_exception_listchange($(this)); position_exception_listchange($(this));
}); });
}); });
//]]> //]]>
</script> </script>