diff options
Diffstat (limited to 'module/web/static/js/views/fileView.js')
-rw-r--r-- | module/web/static/js/views/fileView.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/web/static/js/views/fileView.js b/module/web/static/js/views/fileView.js index 7db8112c8..1c96c61e2 100644 --- a/module/web/static/js/views/fileView.js +++ b/module/web/static/js/views/fileView.js @@ -4,6 +4,8 @@ define(['jquery', 'backbone', 'underscore'], function($, Backbone, _) { return Backbone.View.extend({ tagName: 'li', + className: 'file-view', + template: _.template($("#template-file").html()), events: { }, @@ -12,7 +14,7 @@ define(['jquery', 'backbone', 'underscore'], function($, Backbone, _) { }, render: function() { - this.$el.html(this.model.get('name')); + this.$el.html(this.template(this.model.toJSON())); return this; } |