From 2c981a379943719cb1b688f79e9ee52aa077809b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 20 Sep 2014 23:44:50 +0000 Subject: deleting cars works now diff --git a/index.html b/index.html index 98a9043..c4a865e 100644 --- a/index.html +++ b/index.html @@ -129,35 +129,8 @@ - - 1234 - Das ist ein Cart Titel - 57:14.120 - Mit, 17 Sep 2014 15:12:29 - 1 - Fre, 19 Sep 2014 17:58:12 - - - - - - - - 1235 - - - - - - - - - - - - - - - -
-            
diff --git a/js/shows.js b/js/shows.js index b0cb55b..6a01e92 100644 --- a/js/shows.js +++ b/js/shows.js @@ -4,12 +4,14 @@ var shows_current; var shows_group_carts = {}; var shows_log_carts = []; + function shows_deleteCart(cart) { - alert('removing cart: ' + cart); + data = { COMMAND: 13, LOGIN_NAME: auth_username, PASSWORD: auth_token, CART_NUMBER: cart }; + $.post("/rd-bin/rdxport.cgi", data, null, "xml").done(shows_showSelected); } function shows_importCart(cart) { - alert('removing cart: ' + cart); + alert('importing carts is not implemented yet!'); } // @@ -25,12 +27,6 @@ function shows_importCart(cart) { function shows_udpateCartListing() { $('#show-carts tbody').find('tr').remove(); - $('#show-info-dumper').text( - 'Current Show:\n' + JSON.stringify(shows_current, null, ' ') + - '\n\nGroup Carts:\n' + JSON.stringify(shows_group_carts, null, ' ') + - '\n\nLog Carts:\n' + JSON.stringify(shows_log_carts, null, ' ') - ); - shows_log_carts.forEach(function(elem) { var cart_exists = shows_group_carts[elem] ? 1 : 0; var cart = {}; -- cgit v0.10.2