Commit 4d311f44 by cahrens

Code review feedback.

parent 486d085d
......@@ -83,7 +83,7 @@ CMS.Views.Metadata.AbstractEditor = Backbone.View.extend({
console.error("Couldn't load template: " + templateName);
}
this.template = _.template(tpl);
this.$el.append(this.template({model: this.model, uniqueId: this.uniqueId}));
this.$el.html(this.template({model: this.model, uniqueId: this.uniqueId}));
this.listenTo(this.model, 'change', this.render);
this.render();
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment