mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-29 03:31:10 -05:00
Refresh tables after import + close after invoice email (#478)
This commit is contained in:
@@ -30,7 +30,7 @@ $(document).ready(function()
|
||||
success: function(response)
|
||||
{
|
||||
dialog_support.hide();
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
table_support.handle_submit('<?php echo site_url('customers'); ?>', response);
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
|
||||
@@ -30,7 +30,7 @@ $(document).ready(function()
|
||||
success:function(response)
|
||||
{
|
||||
dialog_support.hide();
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
table_support.handle_submit('<?php echo site_url('items'); ?>', response);
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
|
||||
@@ -126,8 +126,7 @@ $(document).ready(function()
|
||||
if (confirm("<?php echo $this->lang->line('sales_invoice_confirm') . ' ' . $sale_info['email'] ?>")) {
|
||||
$.get("<?php echo site_url($controller_name . '/send_pdf/' . $sale_info['sale_id']); ?>",
|
||||
function(response) {
|
||||
dialog_support.hide();
|
||||
table_support.handle_submit("<?php echo site_url('sales'); ?>", response);
|
||||
BootstrapDialog.closeAll();
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
}, 'json'
|
||||
);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
var btn_id, dialog_ref;
|
||||
|
||||
var hide = function() {
|
||||
dialog_ref.close();
|
||||
dialog_ref && dialog_ref.close();
|
||||
};
|
||||
|
||||
var clicked_id = function() {
|
||||
|
||||
Reference in New Issue
Block a user