Add block highlight during resizing
[MAILPOET-1819]
This commit is contained in:
committed by
M. Shull
parent
d69e0dea9e
commit
727240ca0c
@@ -54,6 +54,7 @@ BL.ResizableBehavior = Marionette.Behavior.extend({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.on('resizestart', function resizestart() {
|
.on('resizestart', function resizestart() {
|
||||||
|
that.view.model.trigger('startEditing');
|
||||||
that.isBeingResized = true;
|
that.isBeingResized = true;
|
||||||
that.$el.addClass('mailpoet_resize_active');
|
that.$el.addClass('mailpoet_resize_active');
|
||||||
}).on('resizemove', function resizemove(event) {
|
}).on('resizemove', function resizemove(event) {
|
||||||
@@ -61,6 +62,7 @@ BL.ResizableBehavior = Marionette.Behavior.extend({
|
|||||||
return onResize(event);
|
return onResize(event);
|
||||||
})
|
})
|
||||||
.on('resizeend', function resizeend() {
|
.on('resizeend', function resizeend() {
|
||||||
|
that.view.model.trigger('stopEditing');
|
||||||
that.isBeingResized = null;
|
that.isBeingResized = null;
|
||||||
that.$el.removeClass('mailpoet_resize_active');
|
that.$el.removeClass('mailpoet_resize_active');
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user