summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/views/fileView.js
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-12-19 23:46:25 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-12-19 23:46:25 +0100
commitce5ef8487d625bb30f17f84d80732a2baeede31b (patch)
treef7a4e8daaff7a8214b7a25548da4395d340482b8 /module/web/static/js/views/fileView.js
parentsepareted dashboard.less (diff)
downloadpyload-ce5ef8487d625bb30f17f84d80732a2baeede31b.tar.xz
added handlebars templates
Diffstat (limited to 'module/web/static/js/views/fileView.js')
-rw-r--r--module/web/static/js/views/fileView.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/web/static/js/views/fileView.js b/module/web/static/js/views/fileView.js
index 1c96c61e2..85b40a413 100644
--- a/module/web/static/js/views/fileView.js
+++ b/module/web/static/js/views/fileView.js
@@ -1,11 +1,12 @@
-define(['jquery', 'backbone', 'underscore'], function($, Backbone, _) {
+define(['jquery', 'backbone', 'underscore', 'handlebars'], function($, Backbone, _, HB) {
// Renders single file item
return Backbone.View.extend({
tagName: 'li',
className: 'file-view',
- template: _.template($("#template-file").html()),
+// template: _.template($("#template-file").html()),
+ template: HB.compile($("#template-file").html()),
events: {
},