mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-05 14:24:05 -04:00
Fix notify alert type for config screens + fix message notification (#478)
This commit is contained in:
@@ -25,7 +25,7 @@ class Config extends Secure_area
|
||||
{
|
||||
$upload_success = $this->_handle_logo_upload();
|
||||
$upload_data = $this->upload->data();
|
||||
|
||||
|
||||
$batch_save_data = array(
|
||||
'company'=>$this->input->post('company'),
|
||||
'address'=>$this->input->post('address'),
|
||||
|
||||
@@ -105,7 +105,7 @@ $(document).ready(function()
|
||||
return true;
|
||||
},
|
||||
success: function(response) {
|
||||
$.notify(response.message, { type: response.sucecss } );
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
// set back disabled state
|
||||
enable_disable_invoice_enable();
|
||||
enable_disable_use_invoice_template();
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
//validation and submit handling
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#message_config_form').validate($.extend(form_support.base, {
|
||||
$('#message_config_form').validate($.extend(form_support.handler, {
|
||||
|
||||
errorLabelContainer: "#general_error_message_box",
|
||||
|
||||
|
||||
@@ -218,7 +218,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} );
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
},
|
||||
dataType:'json'
|
||||
});
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
<link rel="stylesheet" type="text/css" href="dist/opensourcepos.min.css?rel=c7aa3101ab"/>
|
||||
<!-- end mincss template tags -->
|
||||
<!-- start minjs template tags -->
|
||||
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=2e3ca5bece" language="javascript"></script>
|
||||
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=e29115a1fc" language="javascript"></script>
|
||||
<!-- end minjs template tags -->
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
2
dist/opensourcepos.js
vendored
2
dist/opensourcepos.js
vendored
@@ -45357,7 +45357,7 @@ THE SOFTWARE.*/
|
||||
$(form).ajaxSubmit({
|
||||
success: function(response)
|
||||
{
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger', delay: 100000});
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger' });
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
|
||||
2
dist/opensourcepos.min.js
vendored
2
dist/opensourcepos.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -309,7 +309,7 @@
|
||||
$(form).ajaxSubmit({
|
||||
success: function(response)
|
||||
{
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger', delay: 100000});
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger' });
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
<!-- end mincss template tags -->
|
||||
<link rel="stylesheet" type="text/css" href="templates/spacelab/css/style.css"/>
|
||||
<!-- start minjs template tags -->
|
||||
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=2e3ca5bece" language="javascript"></script>
|
||||
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=e29115a1fc" language="javascript"></script>
|
||||
<!-- end minjs template tags -->
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user