diff options
Diffstat (limited to 'www/js/shows.js')
-rw-r--r-- | www/js/shows.js | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/www/js/shows.js b/www/js/shows.js index b050c25..61c774e 100644 --- a/www/js/shows.js +++ b/www/js/shows.js @@ -297,30 +297,27 @@ function shows_updateList(data, status, req) { var dblist = $(data).find("dropboxList"); var dbs = dblist.children(); dbs.each(function() { - var type = $(this).find('type').text(); - if(type == 'show') { - var show = { - id: $(this).find('show-id').text(), - title: $(this).find('show-title').text(), - dow: $(this).find('show-dayofweek').text(), - rhythm: $(this).find('show-rhythm').text(), - starttime: $(this).find('show-starttime').text(), - length: $(this).find('show-length').text(), - log: $(this).find('show-log').text(), - group: { - name: $(this).find('group').text(), - lowcart: $(this).find('group-low-cart').text(), - highcart: $(this).find('group-high-cart').text() - }, - normlevel: $(this).find('normalization-level').text(), - trimlevel: $(this).find('autotrim-level').text() - }; - - var name = show.title + ' (' + show.rhythm + ', ' + weekday[show.dow] + ', ' + show.starttime + ', ' + show.length + ' Min.)'; - $('#show-selector').append($('<option>').attr('value',show.id).text(name)); - - shows_list.push(show); - } + var show = { + id: $(this).find('show-id').text(), + title: $(this).find('show-title').text(), + dow: $(this).find('show-dayofweek').text(), + rhythm: $(this).find('show-rhythm').text(), + starttime: $(this).find('show-starttime').text(), + length: $(this).find('show-length').text(), + log: $(this).find('show-log').text(), + group: { + name: $(this).find('group').text(), + lowcart: $(this).find('group-low-cart').text(), + highcart: $(this).find('group-high-cart').text() + }, + normlevel: $(this).find('normalization-level').text(), + trimlevel: $(this).find('autotrim-level').text() + }; + + var name = show.title + ' (' + show.rhythm + ', ' + weekday[show.dow] + ', ' + show.starttime + ', ' + show.length + ' Min.)'; + $('#show-selector').append($('<option>').attr('value',show.id).text(name)); + + shows_list.push(show); }); $('#show-selector').val(shows_currentid); shows_showSelected(); @@ -331,7 +328,7 @@ function shows_init() { rivendell.setListDropboxesEndpoint('/rh-bin/listdropboxes.cgi'); shows_currentid = sessionStorage.getItem("shows_currentid"); shows_list = []; - rivendell.listDropboxes(shows_updateList); + rivendell.listDropboxes('show', shows_updateList); drawClock('Do, 1.1.1970', '00:00:00', 0); clock_add_callback(drawClock); } |