Collapse contents and expand styles
[MAILPOET-2281]
This commit is contained in:
committed by
Jack Kitterhing
parent
1602f85664
commit
930afe67df
@ -77,6 +77,11 @@ SidebarView = Marionette.View.extend({
|
||||
}
|
||||
},
|
||||
},
|
||||
templateContext: function () { // eslint-disable-line func-names
|
||||
return {
|
||||
isWoocommerceTransactional: this.model.isWoocommerceTransactional(),
|
||||
};
|
||||
},
|
||||
initialize: function () {
|
||||
jQuery(window)
|
||||
.on('resize', this.updateHorizontalScroll.bind(this))
|
||||
@ -430,7 +435,9 @@ App.on('before:start', function (BeforeStartApp) {
|
||||
});
|
||||
|
||||
App.on('start', function (StartApp) {
|
||||
var sidebarView = new SidebarView();
|
||||
var sidebarView = new SidebarView({
|
||||
model: StartApp.getNewsletter(),
|
||||
});
|
||||
|
||||
StartApp._appView.showChildView('sidebarRegion', sidebarView);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<div class="mailpoet_sidebar_region" id="mailpoet_editor_history"></div>
|
||||
<div class="mailpoet_region mailpoet_content_region mailpoet_sidebar_region postbox"></div>
|
||||
<div class="mailpoet_region mailpoet_content_region mailpoet_sidebar_region postbox {{#if isWoocommerceTransactional}} closed {{/if}}"></div>
|
||||
<div class="mailpoet_region mailpoet_layout_region mailpoet_sidebar_region postbox closed"></div>
|
||||
<div class="mailpoet_region mailpoet_styles_region mailpoet_sidebar_region postbox closed"></div>
|
||||
<div class="mailpoet_region mailpoet_styles_region mailpoet_sidebar_region postbox {{#if isWoocommerceTransactional}} {{else}} closed {{/if}}"></div>
|
||||
<div class="mailpoet_region mailpoet_preview_region mailpoet_sidebar_region postbox closed"></div>
|
||||
|
Reference in New Issue
Block a user