mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-23 08:38:37 -04:00
Remove duplicated click handlers on add/remove location
This commit is contained in:
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();
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user