From c09a4e1480f51bb3585bfc9d5ce053fc49492936 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 20 Sep 2014 03:00:23 +0000 Subject: fixed hardcoded value 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(), -- cgit v0.10.2