diff --git a/application/helpers/table_helper.php b/application/helpers/table_helper.php index fa5cd198f..dab383109 100644 --- a/application/helpers/table_helper.php +++ b/application/helpers/table_helper.php @@ -358,10 +358,10 @@ function get_item_data_row($item,$controller) } } $table_data_row.='' . $image . ''; - $table_data_row.=''.anchor($controller_name."/view/$item->item_id/width:$width", $CI->lang->line('common_edit'),array('class'=>'thickbox','title'=>$CI->lang->line($controller_name.'_update'))).''; + $table_data_row.=''.anchor($controller_name."/view/$item->item_id/width:$width", $CI->lang->line('common_edit'),array('class'=>'data-modal','data-toggle'=>'modal','data-target'=>'#ajaxModal','title'=>$CI->lang->line($controller_name.'_update'))).''; $table_data_row.=''.anchor($controller_name."/inventory/$item->item_id/width:$width", $CI->lang->line('common_inv'),array('class'=>'thickbox','title'=>$CI->lang->line($controller_name.'_count')))./*'';//inventory count - $table_data_row.=''*/'    '.anchor($controller_name."/count_details/$item->item_id/width:$width", $CI->lang->line('common_det'),array('class'=>'thickbox','title'=>$CI->lang->line($controller_name.'_details_count'))).'';//inventory details + $table_data_row.=''*/'    '.anchor($controller_name."/count_details/$item->item_id/width:$width", $CI->lang->line('common_det'),array('class'=>'thickbox','title'=>$CI->lang->line($controller_name.'_details_count'))).'';//inventory details $table_data_row.=''; diff --git a/application/views/items/form.php b/application/views/items/form.php index ddf011cbd..4e53470c6 100644 --- a/application/views/items/form.php +++ b/application/views/items/form.php @@ -1,384 +1,403 @@ -
lang->line('common_fields_required_message'); ?>
- + diff --git a/application/views/items/manage.php b/application/views/items/manage.php index 14f91f5fb..1b0475110 100644 --- a/application/views/items/manage.php +++ b/application/views/items/manage.php @@ -57,7 +57,7 @@ $(document).ready(function() do_search(true); return false; }); - + resize_thumbs(); }); diff --git a/js/common.js b/js/common.js index 79b7dc209..10e9111ef 100644 --- a/js/common.js +++ b/js/common.js @@ -1,4 +1,4 @@ -function get_dimensions() +function get_dimensions() { var dims = {width:0,height:0}; diff --git a/js/manage_tables.js b/js/manage_tables.js index 5bfa1b719..b9b370dc1 100644 --- a/js/manage_tables.js +++ b/js/manage_tables.js @@ -386,4 +386,19 @@ function get_visible_checkbox_ids() row_ids.push($(this).val()); }); return row_ids; -} \ No newline at end of file +} + +$(document).ready(function() +{ + $('[data-toggle="modal"]').click( + function(e) { + $('#myModal').remove(); + e.preventDefault(); + var $this = $(this) + , $remote = $this.data('remote') || $this.attr('href') + , $modal = $(''); + $('body').append($modal); + $modal.modal({backdrop: 'static', keyboard: false}); + $modal.load($remote); + }); +}); \ No newline at end of file diff --git a/templates/flatly/css/style.css b/templates/flatly/css/style.css index 967273bc5..fba8ed20c 100644 --- a/templates/flatly/css/style.css +++ b/templates/flatly/css/style.css @@ -74,4 +74,15 @@ table.tablesorter thead tr th, table.tablesorter tfoot tr th { display: none !important; } +} + +.modal-dialog +{ + overflow-y: initial !important +} + +.modal-body +{ + height: 500px; + overflow-y: auto; } \ No newline at end of file diff --git a/templates/spacelab/css/style.css b/templates/spacelab/css/style.css index 875c3d2d8..d72bf4e32 100644 --- a/templates/spacelab/css/style.css +++ b/templates/spacelab/css/style.css @@ -158,3 +158,4 @@ table.tablesorter thead tr th, table.tablesorter tfoot tr th { padding: 10px 10px 9px; } } +