mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-08-07 04:23:17 -04:00
Fix item kits view + search, item bulk edit (#293)
Refactored table_helper to add first and last column automatically
This commit is contained in:
1 parent
4c55da7229
commit
8cf32f4470
9 files changed
+48
-45
No files matched your search
@@ -177,18 +177,17 @@ $(document).ready(function()
|
||||
{
|
||||
if(!confirm_message || confirm(confirm_message))
|
||||
{
|
||||
//Get the selected ids and create hidden fields to send with ajax submit.
|
||||
var selected_item_ids=get_selected_values();
|
||||
for(k=0;k<selected_item_ids.length;k++)
|
||||
{
|
||||
$(form).append("<input type='hidden' name='item_ids[]' value='"+selected_item_ids[k]+"' />");
|
||||
}
|
||||
$('<input>').attr({
|
||||
type: 'hidden',
|
||||
name: 'item_ids[]',
|
||||
value: table_support.selected_ids().join(",")
|
||||
}).appendTo(form);
|
||||
|
||||
$(form).ajaxSubmit({
|
||||
success:function(response)
|
||||
{
|
||||
dialog_support.hide();
|
||||
post_bulk_form_submit(response);
|
||||
table_support.handle_submit('<?php echo site_url('items'); ?>', response);
|
||||
},
|
||||
dataType:'json'
|
||||
});
|
||||
|
||||
@@ -36,9 +36,11 @@ $(document).ready(function()
|
||||
});
|
||||
table_support.init_delete('<?php echo $this->lang->line($controller_name."_confirm_delete")?>');
|
||||
|
||||
var resize_thumbs = function() {
|
||||
$('a.rollover').imgPreview();
|
||||
};
|
||||
var handle_submit = table_support.handle_submit;
|
||||
table_support.handle_submit = function() {
|
||||
debugger;;
|
||||
handle_submit.apply(this, arguments) && $('a.rollover').imgPreview();
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
@@ -63,7 +65,7 @@ $(document).ready(function()
|
||||
<span class="glyphicon glyphicon-trash"></span>
|
||||
<?php echo $this->lang->line("common_delete");?>
|
||||
</button>
|
||||
<button id="bulk_edit" class="btn btn-default btn-sm model-dlg modal-btn-submit" data-href='<?php echo site_url($controller_name."/bulk_edit"); ?>' title='<?php $this->lang->line('items_edit_multiple_items');?>'>
|
||||
<button id="bulk_edit" class="btn btn-default btn-sm modal-dlg modal-btn-submit" data-href='<?php echo site_url($controller_name."/bulk_edit"); ?>' title='<?php $this->lang->line('items_edit_multiple_items');?>'>
|
||||
<span class="glyphicon glyphicon-edit"></span>
|
||||
<?php echo $this->lang->line("items_bulk_edit"); ?>
|
||||
</button>
|
||||
|
||||
Reference in new issue
Block a user