summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html12
1 files changed, 8 insertions, 4 deletions
diff --git a/index.html b/index.html
index 55b80a2..c781d6c 100644
--- a/index.html
+++ b/index.html
@@ -60,11 +60,15 @@
function updateShowListing() {
$('#show-carts tbody').find('tr').remove();
+ $('#show-info-dumper').text(
+ 'Group Carts:\n' + JSON.stringify(group_carts, null, ' ') +
+ '\n\nShow Carts:\n' + JSON.stringify(show_carts, null, ' ')
+ );
}
function updateGroupCartList(data, status, req) {
- show_carts = [];
+ group_carts = [];
$('#show-carts').find('tr:gt(0)').remove();
var cartlist = $(data).find("cartList");
var carts = cartlist.children();
@@ -90,9 +94,7 @@
var cartlist = $(data).find("logList");
var carts = cartlist.children();
carts.each(function() {
- if($(this).find('groupName').text() == current_show.group) {
- show_carts.push($(this).find('cartNumber').text());
- }
+ show_carts.push($(this).find('cartNumber').text());
}
);
@@ -366,6 +368,8 @@
</tr>
</tbody>
</table>
+ <pre id='show-info-dumper'>
+ </pre>
</div>
</div>
</div>