Add a method to bulk update ALC blocks in newsletter editor

This commit is contained in:
Tautvidas Sipavičius
2016-05-31 13:53:45 +03:00
parent c6b13c5175
commit 5d48ecac80
9 changed files with 1478 additions and 451 deletions

View File

@@ -65,6 +65,13 @@ define([
}
return response;
},
getChildren: function() {
var models = this.get('blocks').map(function(model, index, list) {
return [model, model.getChildren()];
});
return _.flatten(models);
},
});
Module.ContainerBlockView = Marionette.CompositeView.extend({