Remove slideIn animation when adding new block to newsletter
[MAILPOET-1976]
This commit is contained in:
@@ -99,8 +99,6 @@ Module.BlockView = AugmentedView.extend({
|
|||||||
},
|
},
|
||||||
initialize: function initialize() {
|
initialize: function initialize() {
|
||||||
this.on('showSettings', this.showSettings, this);
|
this.on('showSettings', this.showSettings, this);
|
||||||
this.on('dom:refresh', this.showBlock, this);
|
|
||||||
this._isFirstRender = true;
|
|
||||||
},
|
},
|
||||||
addHighlight: function addHighlight() {
|
addHighlight: function addHighlight() {
|
||||||
this.$el.addClass('mailpoet_highlight');
|
this.$el.addClass('mailpoet_highlight');
|
||||||
@@ -141,12 +139,6 @@ Module.BlockView = AugmentedView.extend({
|
|||||||
enableDragging: function enableDragging() {
|
enableDragging: function enableDragging() {
|
||||||
this.$el.removeClass('mailpoet_ignore_drag');
|
this.$el.removeClass('mailpoet_ignore_drag');
|
||||||
},
|
},
|
||||||
showBlock: function showBlock() {
|
|
||||||
if (this._isFirstRender) {
|
|
||||||
this.transitionIn();
|
|
||||||
this._isFirstRender = false;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
deleteBlock: function deleteBlock() {
|
deleteBlock: function deleteBlock() {
|
||||||
this.transitionOut().then(function deleteBlockDestroy() {
|
this.transitionOut().then(function deleteBlockDestroy() {
|
||||||
this.model.destroy();
|
this.model.destroy();
|
||||||
@@ -158,9 +150,6 @@ Module.BlockView = AugmentedView.extend({
|
|||||||
{ at: this.model.collection.findIndex(this.model) }
|
{ at: this.model.collection.findIndex(this.model) }
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
transitionIn: function transitionIn() {
|
|
||||||
return this._transition('slideDown', 'fadeIn', 'easeOut');
|
|
||||||
},
|
|
||||||
transitionOut: function transitionOut() {
|
transitionOut: function transitionOut() {
|
||||||
return this._transition('slideUp', 'fadeOut', 'easeIn');
|
return this._transition('slideUp', 'fadeOut', 'easeIn');
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user