Fix ALC block view settings opening on click

[MAILPOET-1819]
This commit is contained in:
Rostislav Wolny
2019-03-06 13:56:14 +01:00
committed by M. Shull
parent 265b35586d
commit b8ce70ec2f
2 changed files with 4 additions and 4 deletions

View File

@@ -135,9 +135,9 @@ Module.AutomatedLatestContentBlockView = base.BlockView.extend({
postsChanged: 'render', postsChanged: 'render',
} }
), ),
events: _.extend(base.BlockView.prototype.events, { events: {
'click .mailpoet_automated_latest_content_block_overlay': 'showSettings', 'click .mailpoet_automated_latest_content_block_overlay': 'showSettings',
}), },
onDragSubstituteBy: function () { return Module.AutomatedLatestContentWidgetView; }, onDragSubstituteBy: function () { return Module.AutomatedLatestContentWidgetView; },
onRender: function () { onRender: function () {
var ContainerView = App.getBlockTypeView('container'); var ContainerView = App.getBlockTypeView('container');

View File

@@ -131,9 +131,9 @@ Module.AutomatedLatestContentLayoutBlockView = base.BlockView.extend({
postsChanged: 'render', postsChanged: 'render',
} }
), ),
events: _.extend(base.BlockView.prototype.events, { events: {
'click .mailpoet_automated_latest_content_block_overlay': 'showSettings', 'click .mailpoet_automated_latest_content_block_overlay': 'showSettings',
}), },
onDragSubstituteBy: function () { return Module.AutomatedLatestContentLayoutWidgetView; }, onDragSubstituteBy: function () { return Module.AutomatedLatestContentLayoutWidgetView; },
onRender: function () { onRender: function () {
var ContainerView = App.getBlockTypeView('container'); var ContainerView = App.getBlockTypeView('container');