Show different highlight borders for column and content blocks

[MAILPOET-1708]
This commit is contained in:
Ján Mikláš
2019-02-09 10:37:08 +01:00
committed by M. Shull
parent 8510e837ab
commit 11cf31a561
4 changed files with 24 additions and 7 deletions

View File

@@ -196,12 +196,14 @@ define([
showTools: function () {
if (this.renderOptions.depth === 1 && !this.$el.hasClass('mailpoet_container_layer_active')) {
this.$(this.ui.tools).addClass('mailpoet_display_tools');
this.$el.addClass('mailpoet_highlight');
this.toolsView.triggerMethod('showTools');
}
},
hideTools: function () {
if (this.renderOptions.depth === 1 && !this.$el.hasClass('mailpoet_container_layer_active')) {
this.$(this.ui.tools).removeClass('mailpoet_display_tools');
this.$el.removeClass('mailpoet_highlight');
this.toolsView.triggerMethod('hideTools');
}
},