Fix ALC buttons settings when updating all buttons

[MAILPOET-896]
This commit is contained in:
Pavel Dohnal
2017-06-08 10:19:24 +01:00
parent 501d00b0cc
commit 93ef1d0197

View File

@@ -129,6 +129,12 @@ define([
Module.AutomatedLatestContentBlockView = base.BlockView.extend({
className: "mailpoet_block mailpoet_automated_latest_content_block mailpoet_droppable_block",
initialize: function() {
function replaceButtonStylesHandler(data) {
this.model.set({'readMoreButton': data});
}
App.getChannel().on('replaceAllButtonStyles', replaceButtonStylesHandler.bind(this));
},
getTemplate: function() { return templates.automatedLatestContentBlock; },
regions: {
toolsRegion: '.mailpoet_tools',