diff options
Diffstat (limited to 'www/js/shows.js')
-rw-r--r-- | www/js/shows.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/www/js/shows.js b/www/js/shows.js index 5fd306c..f3e6105 100644 --- a/www/js/shows.js +++ b/www/js/shows.js @@ -216,7 +216,7 @@ function shows_redrawCartEntry(cart) { $('#show-cart-' + cart).replaceWith(shows_newCartEntry(cart)); } -function shows_udpateCartListing() { +function shows_updateCartListing() { $('#show-carts tbody').find('tr').remove(); shows_log_carts.forEach(function(elem) { $('#show-carts > tbody:last').append(shows_newCartEntry(elem)); @@ -228,8 +228,8 @@ function shows_updateGroupCartList(data, status, req) { var carts = cartlist.children(); carts.each(function() { var cut = $(this).find("cutList").get(0); - number = $(this).find('number').text(), - cart = { + var number = $(this).find('number').text(); + var cart = { title: $(this).find('title').text(), length: Number($(cut).find('length').text()), imported: new Date($(cut).find('originDatetime').text()), @@ -278,7 +278,7 @@ function shows_showSelected() { $.when(lcd, gcd).done( function(lcres, gcres) { if(lcres[1] == 'success' && gcres[1] == 'success') { - shows_udpateCartListing(); + shows_updateCartListing(); } } ); |