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() {
|
||||
this.on('showSettings', this.showSettings, this);
|
||||
this.on('dom:refresh', this.showBlock, this);
|
||||
this._isFirstRender = true;
|
||||
},
|
||||
addHighlight: function addHighlight() {
|
||||
this.$el.addClass('mailpoet_highlight');
|
||||
@@ -141,12 +139,6 @@ Module.BlockView = AugmentedView.extend({
|
||||
enableDragging: function enableDragging() {
|
||||
this.$el.removeClass('mailpoet_ignore_drag');
|
||||
},
|
||||
showBlock: function showBlock() {
|
||||
if (this._isFirstRender) {
|
||||
this.transitionIn();
|
||||
this._isFirstRender = false;
|
||||
}
|
||||
},
|
||||
deleteBlock: function deleteBlock() {
|
||||
this.transitionOut().then(function deleteBlockDestroy() {
|
||||
this.model.destroy();
|
||||
@@ -158,9 +150,6 @@ Module.BlockView = AugmentedView.extend({
|
||||
{ at: this.model.collection.findIndex(this.model) }
|
||||
);
|
||||
},
|
||||
transitionIn: function transitionIn() {
|
||||
return this._transition('slideDown', 'fadeIn', 'easeOut');
|
||||
},
|
||||
transitionOut: function transitionOut() {
|
||||
return this._transition('slideUp', 'fadeOut', 'easeIn');
|
||||
},
|
||||
|
Reference in New Issue
Block a user