ES5 spaced-comment

This commit is contained in:
Amine Ben hammou
2017-09-21 09:08:52 +00:00
parent 8ebb8e3c02
commit 28504fb5e3
10 changed files with 13 additions and 14 deletions

View File

@ -51,7 +51,6 @@
"no-use-before-define": 0,
"one-var": 0,
"camelcase": 0,
"spaced-comment": 0,
"padded-blocks": 0,
"object-curly-spacing": 0,
"strict": 0,

View File

@ -940,13 +940,13 @@ WysijaForm.Block.create = function (createBlock, target) {
if(target.identify() === 'block_placeholder') {
// insert block at the bottom
element = body.insert(output);
//block = body.childElements().last();
// block = body.childElements().last();
} else {
// insert block before the drop target
element = target.insert({
before: output
});
//block = target.previous('.mailpoet_form_block');
// block = target.previous('.mailpoet_form_block');
}
// refresh sortable items
WysijaForm.makeSortable();

View File

@ -3,7 +3,7 @@ define('modal', ['mailpoet', 'jquery'],
'use strict';
var MailPoet = mp;
/***************************************************************************
/** *************************************************************************
MailPoet Modal:
version: 0.9
@ -20,7 +20,7 @@ define('modal', ['mailpoet', 'jquery'],
// loading mode
MailPoet.Modal.loading(bool);
***************************************************************************/
************************************************************************** */
MailPoet.Modal = {
version: 0.9,

View File

@ -33,7 +33,7 @@ define([
var domElement = (this.options.elementSelector === null) ? this.view.$el.get(0) : this.view.$(this.options.elementSelector).get(0),
that = this;
interact(domElement).resizable({
//axis: 'y',
// axis: 'y',
edges: {
top: false,
left: false,

View File

@ -83,7 +83,7 @@ define([
titleIsLink: false, // false|true
imageFullWidth: false, // true|false
featuredImagePosition: 'belowTitle', // 'aboveTitle'|'belowTitle'|'none'
//imageAlignment: 'centerPadded', // 'centerFull'|'centerPadded'|'left'|'right'|'alternate'|'none'
// imageAlignment: 'centerPadded', // 'centerFull'|'centerPadded'|'left'|'right'|'alternate'|'none'
showAuthor: 'no', // 'no'|'aboveText'|'belowText'
authorPrecededBy: 'Author:',
showCategories: 'no', // 'no'|'aboveText'|'belowText'

View File

@ -60,7 +60,7 @@ define([
titleIsLink: false, // false|true
imageFullWidth: false, // true|false
featuredImagePosition: 'belowTitle', // 'aboveTitle'|'belowTitle'|'none'
//imageAlignment: 'centerPadded', // 'centerFull'|'centerPadded'|'left'|'right'|'alternate'|'none'
// imageAlignment: 'centerPadded', // 'centerFull'|'centerPadded'|'left'|'right'|'alternate'|'none'
showAuthor: 'no', // 'no'|'aboveText'|'belowText'
authorPrecededBy: 'Author:',
showCategories: 'no', // 'no'|'aboveText'|'belowText'

View File

@ -47,7 +47,7 @@ define([
return CommunicationComponent.saveNewsletter(json).done(function (response) {
if(response.success !== undefined && response.success === true) {
// TODO: Handle translations
//MailPoet.Notice.success("<?php _e('Newsletter has been saved.'); ?>");
// MailPoet.Notice.success("<?php _e('Newsletter has been saved.'); ?>");
} else if(response.error !== undefined) {
if(response.error.length === 0) {
MailPoet.Notice.error(

View File

@ -8,8 +8,8 @@
* its placeholder into editor text.
*/
/*jshint unused:false */
/*global tinymce:true */
/* jshint unused:false */
/* global tinymce:true */
tinymce.PluginManager.add('mailpoet_shortcodes', function (editor, url) {
var appendLabelAndClose = function (shortcode) {
editor.insertContent(shortcode);

View File

@ -1,7 +1,7 @@
define('notice', ['mailpoet', 'jquery'], function (mp, jQuery) {
'use strict';
/*==================================================================================================
/*= =================================================================================================
MailPoet Notice:
@ -22,7 +22,7 @@ define('notice', ['mailpoet', 'jquery'], function (mp, jQuery) {
// system message (static: true)
MailPoet.Notice.system('You need to updated ASAP!');
==================================================================================================*/
================================================================================================== */
var MailPoet = mp;
MailPoet.Notice = {
version: 1.0,

View File

@ -23,7 +23,7 @@ define(
var subscribers_export_template =
Handlebars.compile(jQuery('#mailpoet_subscribers_export_template').html());
//render template
// render template
jQuery('#mailpoet_subscribers_export > div.inside').html(subscribers_export_template(window.exportData));
// define reusable variables