summaryrefslogtreecommitdiff
path: root/static/init.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/init.js')
-rw-r--r--static/init.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/static/init.js b/static/init.js
index b45539c..2cdd84b 100644
--- a/static/init.js
+++ b/static/init.js
@@ -23,29 +23,6 @@ function preload_images() {
});
}
-Handlebars.registerHelper('trackname', function() {
- var item = this;
- if(!item.metadata)
- return item.name;
-
- var s = '';
- if(item.metadata.title)
- s = item.metadata.title;
- if(item.metadata.artist) {
- if(s.length) {
- s = ' - ' + s;
- s = item.metadata.artist + s;
- }
- }
- if(!s.length)
- s = item.name;
- return s;
-});
-
-var templates = new (function Templates() {
- this.directory_item = Handlebars.compile('<li id="{{type}}-{{id}}" class="{{type}}{{#if nocache}} nocache{{/if}}"><a href="#">{{trackname}}</a>');
-})();
-
function load_directory(dir_id, dir_item) {
$.get('/json/list/' + dir_id, function(data) {
var dir_list = $('#directory-list');