1 define(function(require) {
5 var $ = require('libs/jquery'),
6 _ = require('libs/underscore'),
7 template = require('libs/text!./documentSummary.html');
11 dom: $('<div class="documentSummary"></div>'),
12 init: function(config, doc) {
15 this.template = _.template(template);
17 this.doc.on('propertyChanged', this.render, this);
20 this.dom.html(this.template({
21 title: this.config.title,
22 properties: this.config.properties,
23 propertyValues: this.doc.properties
26 setDraftField: function(value) {
27 this.dom.find('.draft').text(value);