missing response in fail and prevent next on MC import
This commit is contained in:
@@ -221,7 +221,7 @@ define(
|
|||||||
});
|
});
|
||||||
|
|
||||||
mailChimpProcessButtonElement.click(function () {
|
mailChimpProcessButtonElement.click(function () {
|
||||||
if (mailChimpProcessButtonElement.closest('table a').hasClass('disabled')) {
|
if (mailChimpProcessButtonElement.closest('table a').hasClass('button-disabled')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
MailPoet.Modal.loading(true);
|
MailPoet.Modal.loading(true);
|
||||||
@@ -237,7 +237,7 @@ define(
|
|||||||
}).done(function(response) {
|
}).done(function(response) {
|
||||||
importData.step1 = response.data;
|
importData.step1 = response.data;
|
||||||
router.navigate('step2', {trigger: true});
|
router.navigate('step2', {trigger: true});
|
||||||
}).fail(function () {
|
}).fail(function(response) {
|
||||||
if (response.errors.length > 0) {
|
if (response.errors.length > 0) {
|
||||||
MailPoet.Notice.error(
|
MailPoet.Notice.error(
|
||||||
response.errors.map(function(error) { return error.message; }),
|
response.errors.map(function(error) { return error.message; }),
|
||||||
|
Reference in New Issue
Block a user