X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/6d7963d9e1a726e9e8d2173b7df165c63421f546..3db378e91ce58920fd1d1cdb6cd6997c88089edb:/src/editor/plugins/core/edumed/choice/list.js diff --git a/src/editor/plugins/core/edumed/choice/list.js b/src/editor/plugins/core/edumed/choice/list.js index e3fbd84..04891e4 100644 --- a/src/editor/plugins/core/edumed/choice/list.js +++ b/src/editor/plugins/core/edumed/choice/list.js @@ -15,7 +15,6 @@ var ListView = function(element, listNode, params) { this.params = params; this.dom = $(_.template(viewTemplate)()); this.list = this.dom.find('ul'); - this.addButton = this.dom.find('button.add'); this.itemViews = []; this.listNode.contents() @@ -74,8 +73,9 @@ var ItemView = function(node, exerciseView) { this.dom = $(_.template(viewItemTemplate)()); this.container = exerciseView.element.createContainer(node.contents(), { - manages: function(node, originaParent) { - return this.node.sameNode(node.parent() || originaParent); + resetBackground: true, + manages: function(node, originalParent) { + return this.node.sameNode(node.parent() || originalParent); }.bind(this), dom: this.dom.find('.content') });