X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/5028701711e4a1ee85e88f5ff7f1caf911dad8e5..3db378e91ce58920fd1d1cdb6cd6997c88089edb:/src/editor/plugins/core/edumed/gaps/element.js diff --git a/src/editor/plugins/core/edumed/gaps/element.js b/src/editor/plugins/core/edumed/gaps/element.js index 294ac0a..1c3d8ea 100644 --- a/src/editor/plugins/core/edumed/gaps/element.js +++ b/src/editor/plugins/core/edumed/gaps/element.js @@ -8,14 +8,15 @@ var $ = require('libs/jquery'), elementBase = require('plugins/core/edumed/elementBase'), viewTemplate = require('libs/text!./view.html'); -var OrderExerciceElement = Object.create(elementBase); -_.extend(OrderExerciceElement, { +var GapsExerciseElement = Object.create(elementBase); +_.extend(GapsExerciseElement, { init: function() { elementBase.init.call(this); var view = $(_.template(viewTemplate)()); this._container().append(view); this.createContainer(this.wlxmlNode.contents(), { + resetBackground: true, manages: function() { return true; }, @@ -41,12 +42,6 @@ _.extend(OrderExerciceElement, { } }); -return {tag: 'div', klass: 'exercise.gap', prototype: OrderExerciceElement}; +return {tag: 'div', klass: 'exercise.gap', prototype: GapsExerciseElement}; }); - - - - - -