X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/6d7963d9e1a726e9e8d2173b7df165c63421f546..c654f07dd8b596abc328f1f57beef06bffa63149:/src/editor/plugins/core/edumed/choice/choiceBase.js diff --git a/src/editor/plugins/core/edumed/choice/choiceBase.js b/src/editor/plugins/core/edumed/choice/choiceBase.js index dc8fe0a..eaf1c7c 100644 --- a/src/editor/plugins/core/edumed/choice/choiceBase.js +++ b/src/editor/plugins/core/edumed/choice/choiceBase.js @@ -4,15 +4,15 @@ define(function(require) { var $ = require('libs/jquery'), _ = require('libs/underscore'), - documentElement = require('modules/documentCanvas/canvas/documentElement'), + elementBase = require('plugins/core/edumed/elementBase'), template = require('libs/text!./element.html'); -var choiceBase = Object.create(documentElement.DocumentNodeElement.prototype); +var choiceBase = Object.create(elementBase); _.extend(choiceBase, { init: function() { - documentElement.DocumentNodeElement.prototype.init.call(this); - this.view = $(_.template(template)({type: this.type})); + elementBase.init.call(this); + this.view = $(_.template(template)({type: this.type, name: this.name})); this._container().append(this.view); this.createContainer(this.wlxmlNode.contents().filter(function(n) {return !n.is('list');}), {