Fix notify alert type for config screens + fix message notification (#478)

This commit is contained in:
jekkos committed 2016-05-31 08:33:34 +02:00
1 parent 8c6bba62c9
commit 998e9bbb8e
9 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -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'),
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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'
});
+1 -1
View File
@@ -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; ?>
+1 -1
View File
@@ -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'
});
+1 -1
View File
File diff suppressed because one or more lines are too long.
+1 -1
View File
@@ -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'
});
+1 -1
View File
@@ -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; ?>