mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-28 19:10:11 -04:00
Fix Mailchimp config issue due to missing json payload format
This commit is contained in:
@@ -55,13 +55,13 @@ $(document).ready(function()
|
||||
'mailchimp_api_key': $('#mailchimp_api_key').val()
|
||||
}),
|
||||
function(response) {
|
||||
$.notify(response.message, { type: response.success ? 'success' : 'danger'} );
|
||||
$.notify(response.message, {type: response.success ? 'success' : 'danger'} );
|
||||
$('#mailchimp_list_id').empty();
|
||||
$.each(response.mailchimp_lists, function(val, text) {
|
||||
$('#mailchimp_list_id').append(new Option(text, val));
|
||||
});
|
||||
$('#mailchimp_list_id').prop('selectedIndex', 0);
|
||||
}
|
||||
}, 'json'
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user