editor: cleanup - removing unused code in edumed exercises implementation
[fnpeditor.git] / src / editor / plugins / core / edumed / choice / list.js
index e3fbd84..ed897c0 100644 (file)
@@ -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,6 +73,7 @@ var ItemView = function(node, exerciseView) {
     this.dom = $(_.template(viewItemTemplate)());
 
     this.container = exerciseView.element.createContainer(node.contents(), {
+        resetBackground: true,
         manages: function(node, originaParent) {
             return this.node.sameNode(node.parent() || originaParent);
         }.bind(this),