summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/shows.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/www/js/shows.js b/www/js/shows.js
index 0c72dc0..4dcb050 100644
--- a/www/js/shows.js
+++ b/www/js/shows.js
@@ -242,7 +242,7 @@ function shows_updateGroupCartList(data) {
length: Number($(cut).find('length').text()),
imported: new Date($(cut).find('originDatetime').text()),
playcnt: $(cut).find('playCounter').text(),
- lastplayed: new Date($(cut).find('lastPlayDatetime').text()),
+ lastplayed: new Date($(cut).find('lastPlayDatetime').text())
};
cart.imported = isNaN(cart.imported) ? '-' : cart.imported;
cart.lastplayed = isNaN(cart.lastplayed) ? '-' : cart.lastplayed;
@@ -310,11 +310,11 @@ function shows_updateList(data, status, req) {
group: {
name: $(this).find('group').text(),
lowcart: $(this).find('group-low-cart').text(),
- highcart: $(this).find('group-high-cart').text(),
+ highcart: $(this).find('group-high-cart').text()
},
normlevel: $(this).find('normalization-level').text(),
- trimlevel: $(this).find('autotrim-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));
@@ -332,8 +332,7 @@ function shows_init() {
rivendell.setListDropboxesEndpoint('/rh-bin/listdropboxes.cgi');
shows_currentid = sessionStorage.getItem("shows_currentid");
shows_list = [];
- data = { LOGIN_NAME: auth_username, PASSWORD: auth_token };
- $.post("/rh-bin/listdropboxes.cgi", data, shows_updateList, "xml")
+ rivendell.listDropboxes(shows_updateList);
drawClock('Do, 1.1.1970', '00:00:00', 0);
clock_add_callback(drawClock);
}