diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-12-19 23:46:25 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-12-19 23:46:25 +0100 |
commit | ce5ef8487d625bb30f17f84d80732a2baeede31b (patch) | |
tree | f7a4e8daaff7a8214b7a25548da4395d340482b8 /module/web/static/js/views | |
parent | separeted dashboard.less (diff) | |
download | pyload-ce5ef8487d625bb30f17f84d80732a2baeede31b.tar.xz |
added handlebars templates
Diffstat (limited to 'module/web/static/js/views')
-rw-r--r-- | module/web/static/js/views/fileView.js | 5 | ||||
-rw-r--r-- | module/web/static/js/views/packageView.js | 7 |
2 files changed, 7 insertions, 5 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: { }, diff --git a/module/web/static/js/views/packageView.js b/module/web/static/js/views/packageView.js index 5bc23a7b3..acf437cd8 100644 --- a/module/web/static/js/views/packageView.js +++ b/module/web/static/js/views/packageView.js @@ -1,12 +1,13 @@ -define(['jquery', 'views/abstract/itemView', 'underscore', 'views/fileView', 'utils/lazyRequire', 'peity'], - function($, itemView, _, fileView, lazyLoader) { +define(['jquery', 'views/abstract/itemView', 'underscore', 'views/fileView', 'utils/lazyRequire', 'handlebars', 'peity'], + function($, itemView, _, fileView, lazyLoader, HB) { // Renders a single package item return itemView.extend({ tagName: 'li', className: 'package-view', - template: _.template($("#template-package").html()), +// template: _.template($("#template-package").html()), + template: HB.compile($("#template-package").html()), events: { 'click .package-header': 'load', 'click .delete': 'delete', |