Fix eslint max-len in es5 files

[MAILPOET-1145]
This commit is contained in:
Pavel Dohnal
2018-02-19 15:17:57 +00:00
parent e484705ac1
commit f7fcec7953
21 changed files with 290 additions and 157 deletions

View File

@@ -46,7 +46,8 @@ define('mp2migrator', ['mailpoet', 'jquery'], function (mp, jQuery) {
jQuery('#logger').append('<span class="error_msg">' + MailPoet.MP2Migrator.fatal_error + '</span>' + '<br />\n');
}).always(function () {
if (MailPoet.MP2Migrator.is_logging) {
MailPoet.MP2Migrator.displayLogs_timeout = setTimeout(MailPoet.MP2Migrator.displayLogs, 1000);
MailPoet.MP2Migrator.displayLogs_timeout
= setTimeout(MailPoet.MP2Migrator.displayLogs, 1000);
}
});
},
@@ -70,7 +71,8 @@ define('mp2migrator', ['mailpoet', 'jquery'], function (mp, jQuery) {
jQuery('#logger-container').show();
}
if (MailPoet.MP2Migrator.is_logging) {
MailPoet.MP2Migrator.updateProgressbar_timeout = setTimeout(MailPoet.MP2Migrator.updateProgressbar, 1000);
MailPoet.MP2Migrator.updateProgressbar_timeout
= setTimeout(MailPoet.MP2Migrator.updateProgressbar, 1000);
}
});
},
@@ -97,7 +99,8 @@ define('mp2migrator', ['mailpoet', 'jquery'], function (mp, jQuery) {
}
}).always(function () {
MailPoet.MP2Migrator.stopLogger();
MailPoet.MP2Migrator.updateDisplay(); // Get the latest information after the import was stopped
// Get the latest information after the import was stopped
MailPoet.MP2Migrator.updateDisplay();
MailPoet.MP2Migrator.reactivateImportButton();
}).done(function (response) {
if (response) {
@@ -133,7 +136,8 @@ define('mp2migrator', ['mailpoet', 'jquery'], function (mp, jQuery) {
}).always(function () {
jQuery('#stop-import').removeAttr('disabled'); // Enable the button
MailPoet.MP2Migrator.reactivateImportButton();
MailPoet.MP2Migrator.updateDisplay(); // Get the latest information after the import was stopped
// Get the latest information after the import was stopped
MailPoet.MP2Migrator.updateDisplay();
}).fail(function (response) {
if (response.errors.length > 0) {
MailPoet.Notice.error(