X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/24f82f204feceecca2d05e1b2c9a07f7146642cc..6b27d5301b4995add87d5734e6de2d974007a196:/src/editor/modules/rng/documentSummary.js diff --git a/src/editor/modules/rng/documentSummary.js b/src/editor/modules/rng/documentSummary.js index 211037d..fe593c3 100644 --- a/src/editor/modules/rng/documentSummary.js +++ b/src/editor/modules/rng/documentSummary.js @@ -9,15 +9,18 @@ var $ = require('libs/jquery'), var view = { dom: $('
'), - init: function(config) { + init: function(config, doc) { this.config = config; + this.doc = doc; this.template = _.template(template); + + this.doc.on('propertyChanged', this.render, this); }, - render: function(properties) { + render: function() { this.dom.html(this.template({ title: this.config.title, properties: this.config.properties, - propertyValues: properties + propertyValues: this.doc.properties })); }, setDraftField: function(value) {