mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-07 23:35:04 -04:00
Fix notifications
This commit is contained in:
@@ -142,7 +142,7 @@ $(document).ready(function()
|
||||
return true;
|
||||
},
|
||||
success: function(response) {
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
$.notify( { response.message }, { type: response.success ? 'success' : 'danger'} );
|
||||
// set back disabled state
|
||||
check_protocol();
|
||||
},
|
||||
|
||||
@@ -458,7 +458,7 @@ $(document).ready(function()
|
||||
return true;
|
||||
},
|
||||
success: function(response) {
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
$.notify( { response.message }, { type: response.success ? 'success' : 'danger'} );
|
||||
// set back disabled state
|
||||
enable_disable_gcaptcha_enable();
|
||||
},
|
||||
|
||||
@@ -70,7 +70,7 @@ $(document).ready(function()
|
||||
submitHandler: function(form) {
|
||||
$(form).ajaxSubmit({
|
||||
success: function(response) {
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
$.notify( { response.message }, { type: response.success ? 'success' : 'danger'} );
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
|
||||
@@ -209,7 +209,7 @@ $(document).ready(function()
|
||||
return true;
|
||||
},
|
||||
success: function(response) {
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
$.notify( { response.message }, { type: response.success ? 'success' : 'danger'} );
|
||||
// set back disabled state
|
||||
enable_disable_invoice_enable();
|
||||
enable_disable_work_order_enable();
|
||||
|
||||
@@ -340,7 +340,7 @@ $(document).ready(function()
|
||||
return ( dialog_confirmed || confirm('<?php echo $this->lang->line('config_jsprintsetup_required'); ?>') );
|
||||
},
|
||||
success: function(response) {
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
$.notify( { response.message }, { type: response.success ? 'success' : 'danger'} );
|
||||
},
|
||||
dataType:'json'
|
||||
});
|
||||
|
||||
@@ -42,7 +42,7 @@ $(document).ready(function()
|
||||
submitHandler: function(form) {
|
||||
$(form).ajaxSubmit({
|
||||
success: function(response) {
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
$.notify( { response.message }, { type: response.success ? 'success' : 'danger'} );
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
|
||||
@@ -151,7 +151,7 @@ $(document).ready(function()
|
||||
$.get("<?php echo site_url($controller_name . '/send_pdf/' . $sale_info['sale_id']); ?>",
|
||||
function(response) {
|
||||
BootstrapDialog.closeAll();
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
$.notify( { response.message }, { type: response.success ? 'success' : 'danger'} );
|
||||
}, 'json'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ if (isset($error_message))
|
||||
$.get('<?php echo site_url() . "/sales/send_pdf/" . $sale_id_num . "/quote"; ?>',
|
||||
function(response)
|
||||
{
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
$.notify( { response.message }, { type: response.success ? 'success' : 'danger'} );
|
||||
}, 'json'
|
||||
);
|
||||
};
|
||||
|
||||
@@ -17,7 +17,7 @@ if (isset($error_message))
|
||||
$.get('<?php echo site_url() . "/sales/send_receipt/" . $sale_id_num; ?>',
|
||||
function(response)
|
||||
{
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
$.notify( { response.message }, { type: response.success ? 'success' : 'danger'} );
|
||||
}, 'json'
|
||||
);
|
||||
};
|
||||
|
||||
@@ -870,7 +870,7 @@ $(document).ready(function()
|
||||
|
||||
table_support.handle_submit = function(resource, response, stay_open)
|
||||
{
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
$.notify( { response.message }, { type: response.success ? 'success' : 'danger'} );
|
||||
|
||||
if(response.success)
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ $(document).ready(function()
|
||||
$.get('<?php echo site_url() . "/sales/send_pdf/" . $sale_id_num; ?>',
|
||||
function(response)
|
||||
{
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
$.notify( { response.message }, { type: response.success ? 'success' : 'danger'} );
|
||||
}, 'json'
|
||||
);
|
||||
};
|
||||
|
||||
@@ -17,7 +17,7 @@ if(isset($error_message))
|
||||
$.get('<?php echo site_url() . "/sales/send_pdf/" . $sale_id_num . "/work_order"; ?>',
|
||||
function(response)
|
||||
{
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
$.notify( { response.message }, { type: response.success ? 'success' : 'danger'} );
|
||||
}, 'json'
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user