diff options
author | Christian Pointner <equinox@helsinki.at> | 2014-09-20 02:30:29 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2014-09-20 02:30:29 (GMT) |
commit | 9c826333ad5ff390d207122acf0466e7361924f7 (patch) | |
tree | 007b08da3fcf62c69c84e2095caf5f113e832513 | |
parent | 2b7eeb30faa8c4485588a7c4bb34cad10c5a84cd (diff) |
added debug output
-rw-r--r-- | index.html | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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> |