summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html13
1 files changed, 9 insertions, 4 deletions
diff --git a/index.html b/index.html
index 2c708f5..5b09644 100644
--- a/index.html
+++ b/index.html
@@ -61,7 +61,8 @@
function updateShowListing() {
$('#show-carts tbody').find('tr').remove();
$('#show-info-dumper').text(
- 'Group Carts:\n' + JSON.stringify(group_carts, null, ' ') +
+ 'Current Show:\n' + JSON.stringify(current_show, null, ' ') +
+ '\n\nGroup Carts:\n' + JSON.stringify(group_carts, null, ' ') +
'\n\nShow Carts:\n' + JSON.stringify(show_carts, null, ' ')
);
@@ -93,7 +94,7 @@
var carts = cartlist.children();
carts.each(function() {
var number = $(this).find('cartNumber').text();
- if(number >= 100000) { // TODO: hardcoded value....
+ if(number >= current_show.group.lowcart && number <= current_show.group.highcart) {
show_carts.push(number);
}
}
@@ -114,7 +115,7 @@
scd = $.post("/rd-bin/rdxport.cgi", data, updateShowCartList, "xml");
group_carts = [];
- data = { COMMAND: 6, LOGIN_NAME: username, PASSWORD: token, GROUP_NAME: current_show.group, INCLUDE_CUTS: 1 };
+ data = { COMMAND: 6, LOGIN_NAME: username, PASSWORD: token, GROUP_NAME: current_show.group.name, INCLUDE_CUTS: 1 };
gcd = $.post("/rd-bin/rdxport.cgi", data, updateGroupCartList, "xml");
$.when(scd, gcd).done(
@@ -142,7 +143,11 @@
rhythm: $(this).find('show-rhythm').text(),
starttime: $(this).find('show-starttime').text(),
length: $(this).find('show-length').text(),
- group: $(this).find('group').text(),
+ group: {
+ name: $(this).find('group').text(),
+ lowcart: $(this).find('group-low-cart').text(),
+ highcart: $(this).find('group-high-cart').text(),
+ },
log: $(this).find('log').text(),
normlevel: $(this).find('normalization-level').text(),
trimlevel: $(this).find('autotrim-level').text(),