editor: Fixed posts setting sellection view context and behavior

This commit is contained in:
Rostislav Wolny
2018-03-15 10:04:01 +01:00
parent c7e83377ba
commit 5e35a724f0
2 changed files with 11 additions and 6 deletions

View File

@@ -345,6 +345,11 @@ define([
this.$('.mailpoet_post_selection_loading').css('visibility', 'hidden');
}
},
templateContext: function () {
return {
model: this.model.toJSON()
};
},
onRender: function () {
var postsView;
// Dynamically update available post types