From 138d1cbeef7432d013cea3a56a5e42a7584f822d Mon Sep 17 00:00:00 2001 From: jekkos Date: Thu, 26 Mar 2015 13:00:08 +0100 Subject: [PATCH] Remove duplicated click handlers on add/remove location --- application/views/configs/location_config.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/application/views/configs/location_config.php b/application/views/configs/location_config.php index 44693ffc6..7baa6ff4e 100644 --- a/application/views/configs/location_config.php +++ b/application/views/configs/location_config.php @@ -54,9 +54,7 @@ $(document).ready(function() var new_block = block.insertAfter($(this).parent()); var new_block_id = 'stock_location_' + ++id; $(new_block).find('label').html("lang->line('config_stock_location'); ?> " + ++location_count + ": ").attr('for', new_block_id); - $(new_block).find('input').attr('id', new_block_id).attr('name', new_block_id).val(''); - $('.add_stock_location', new_block).click(add_stock_location); - $('.remove_stock_location', new_block).click(remove_stock_location); + $(new_block).find('input').attr('id', new_block_id).removeAttr('disabled').attr('name', new_block_id).val(''); hide_show_remove(); };