ES5 keyword-spacing

This commit is contained in:
Amine Ben hammou
2017-09-21 09:13:36 +00:00
parent 1ad90680f4
commit 95551ad049
15 changed files with 177 additions and 178 deletions

View File

@@ -45,11 +45,11 @@ define([
// save newsletter
return CommunicationComponent.saveNewsletter(json).done(function (response) {
if(response.success !== undefined && response.success === true) {
if (response.success !== undefined && response.success === true) {
// TODO: Handle translations
// MailPoet.Notice.success("<?php _e('Newsletter has been saved.'); ?>");
} else if(response.error !== undefined) {
if(response.error.length === 0) {
} else if (response.error !== undefined) {
if (response.error.length === 0) {
MailPoet.Notice.error(
MailPoet.I18n.t('templateSaveFailed'),
{
@@ -283,7 +283,7 @@ define([
},
next: function () {
this.hideOptionContents();
if(!this.$('.mailpoet_save_next').hasClass('button-disabled')) {
if (!this.$('.mailpoet_save_next').hasClass('button-disabled')) {
Module._cancelAutosave();
Module.save().done(function (response) {
window.location.href = App.getConfig().get('urls.send');