summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2014-09-20 23:44:50 (GMT)
committerChristian Pointner <equinox@helsinki.at>2014-09-20 23:44:50 (GMT)
commit2c981a379943719cb1b688f79e9ee52aa077809b (patch)
treefb6237e3bd1f1671ff3b39e3a53e523f7311a4ea /js
parent73ec6bc12e9c0200055578a6e74ddd2bdcb7fe98 (diff)
deleting cars works now
Diffstat (limited to '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 = {};