this.createContainer(this.wlxmlNode.object.getDescription(), {
resetBackground: true,
manages: function(node, removedFrom) {
- if(node.is('list.orderable')) {
+ if(node.is('list.orderable') || (removedFrom && removedFrom.is('list.orderable'))) {
return false;
}
return exerciseNode.sameNode(node.parent() || removedFrom); //!n.hasFollowingSibing(this.params.listnode);
this.reloadView();
}
},
+ onNodeDetached: function(event) {
+ var node = event.meta.node;
+ if(node.is('item.answer') && event.meta.parent && event.meta.parent.is('list.orderable')) {
+ this.reloadView();
+ }
+ },
reloadView: function() {
this.view.clearItems();
this.wlxmlNode.object.getItems().forEach(function(item) {