Enable bootstrap tables localisation and integrate with ospos scripts

(#293)
Fix item bulk update (all items are updated now) (#507)
Stop click event propagation when opening modal dialog on a table row
(caused row to be selected/deselected)
This commit is contained in:
jekkos committed 2016-05-03 08:10:37 +02:00
1 parent c568c08595
commit e7a22e4e41
27 files changed
+199 -14

No files matched your search

+3 -2
View File
@@ -492,7 +492,8 @@ class Items extends Secure_area implements iData_controller
}
//Item data could be empty if tax information is being updated
if(empty($item_data) || $this->Item->update_multiple($item_data, $items_to_update))
$item_ids = explode(",", $items_to_update);
if(empty($item_data) || $this->Item->update_multiple($item_data, $item_ids))
{
$items_taxes_data = array();
$tax_names = $this->input->post('tax_names');
@@ -514,7 +515,7 @@ class Items extends Secure_area implements iData_controller
$this->Item_taxes->save_multiple($items_taxes_data, $items_to_update);
}
echo json_encode(array('success'=>true,'message'=>$this->lang->line('items_successful_bulk_edit')));
echo json_encode(array('success'=>true,'message'=>$this->lang->line('items_successful_bulk_edit'), 'id'=>$item_ids));
}
else
{