Remove duplicated click handlers on add/remove location

This commit is contained in:
jekkos committed 2015-03-26 13:00:08 +01:00
1 parent 9ead6fcca9
commit 138d1cbeef
1 file changed
+1 -3
@@ -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("<?php echo $this->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();
};