missing response in fail and prevent next on MC import

This commit is contained in:
Jonathan Labreuille
2016-08-17 16:15:54 +02:00
parent 1278d9648c
commit 5025f10f9f

View File

@@ -221,7 +221,7 @@ define(
});
mailChimpProcessButtonElement.click(function () {
if (mailChimpProcessButtonElement.closest('table a').hasClass('disabled')) {
if (mailChimpProcessButtonElement.closest('table a').hasClass('button-disabled')) {
return;
}
MailPoet.Modal.loading(true);
@@ -237,7 +237,7 @@ define(
}).done(function(response) {
importData.step1 = response.data;
router.navigate('step2', {trigger: true});
}).fail(function () {
}).fail(function(response) {
if (response.errors.length > 0) {
MailPoet.Notice.error(
response.errors.map(function(error) { return error.message; }),