summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorPeter Grassberger <petertheone@gmail.com>2015-12-27 22:43:06 (GMT)
committerPeter Grassberger <petertheone@gmail.com>2015-12-27 22:43:06 (GMT)
commitbbf260973e8bddf4d912eada3e6efb035c268d26 (patch)
tree270e84afae1c7679a798b4264886c909b215e0a8 /www
parent5408e4f4b76a5dd54fbd49f5988104933e0d8cb2 (diff)
shows: remove replace manuel listdropbox request
Diffstat (limited to 'www')
-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);
}