summaryrefslogtreecommitdiffstats
path: root/module/web/static/js
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-10-06 22:42:17 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-10-06 22:42:17 +0200
commit97d3ae3a0e1c7da0877345fa429394822dec6443 (patch)
tree8beb2d0159cf024f65d95af63c61eb3db741a95c /module/web/static/js
parenttask to optimize js code (diff)
downloadpyload-97d3ae3a0e1c7da0877345fa429394822dec6443.tar.xz
template for file-view
Diffstat (limited to 'module/web/static/js')
-rw-r--r--module/web/static/js/views/fileView.js4
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;
}