diff options
-rw-r--r-- | index.html | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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(), |