rewrite PostTransformer to return old or new structure depending on the newVersion attribute

This commit is contained in:
Amine Ben hammou
2018-05-22 06:52:37 +00:00
parent b3a23bdddc
commit d7ab03b1c7
4 changed files with 185 additions and 113 deletions

View File

@@ -583,6 +583,7 @@ define([
});
Module.PostsWidgetView = base.WidgetView.extend({
className: base.WidgetView.prototype.className + ' mailpoet_droppable_layout_block',
getTemplate: function () { return window.templates.postsInsertion; },
behaviors: {
DraggableBehavior: {