summaryrefslogtreecommitdiff
path: root/js/shows.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/shows.js')
-rw-r--r--js/shows.js12
1 files changed, 4 insertions, 8 deletions
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!');
}
// <td>
@@ -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 = {};