mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-24 00:58:37 -04:00
Images are not removed from items when no file is chosen
Image thumbnails are resized proportionally and updated after update_row refresh Add some padding to the thumbnails Move select specific styles to ospos.css stylesheet
This commit is contained in:
1 parent
7efb1428f5
commit
8ccba57d98
8 files changed
+176
-24
No files matched your search
@@ -320,7 +320,6 @@ class Items extends Secure_area implements iData_controller
|
||||
'receiving_quantity'=>$this->input->post('receiving_quantity'),
|
||||
'allow_alt_description'=>$this->input->post('allow_alt_description'),
|
||||
'is_serialized'=>$this->input->post('is_serialized'),
|
||||
'pic_id'=>$upload_data['raw_name'],
|
||||
'deleted'=>$this->input->post('is_deleted'), /** Parq 131215 **/
|
||||
'custom1'=>$this->input->post('custom1'), /**GARRISON ADDED 4/21/2013**/
|
||||
'custom2'=>$this->input->post('custom2'),/**GARRISON ADDED 4/21/2013**/
|
||||
@@ -334,6 +333,11 @@ class Items extends Secure_area implements iData_controller
|
||||
'custom10'=>$this->input->post('custom10')/**GARRISON ADDED 4/21/2013**/
|
||||
);
|
||||
|
||||
if (!empty($upload_data['raw_name']))
|
||||
{
|
||||
$item_data['pic_id'] = $upload_data['raw_name'];
|
||||
}
|
||||
|
||||
$employee_id=$this->Employee->get_logged_in_employee_info()->person_id;
|
||||
$cur_item_info = $this->Item->get_info($item_id);
|
||||
|
||||
@@ -417,8 +421,8 @@ class Items extends Secure_area implements iData_controller
|
||||
$config = array('upload_path' => './uploads/item_pics/',
|
||||
'allowed_types' => 'gif|jpg|png',
|
||||
'max_size' => '100',
|
||||
'max_width' => '1024',
|
||||
'max_height' => '768',
|
||||
'max_width' => '640',
|
||||
'max_height' => '480',
|
||||
'file_name' => sizeof($map));
|
||||
$this->load->library('upload', $config);
|
||||
$this->upload->do_upload('item_image');
|
||||
|
||||
Reference in new issue
Block a user