summaryrefslogtreecommitdiff
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
parent73ec6bc12e9c0200055578a6e74ddd2bdcb7fe98 (diff)
deleting cars works now
-rw-r--r--index.html27
-rw-r--r--js/shows.js12
2 files changed, 4 insertions, 35 deletions
diff --git a/index.html b/index.html
index 98a9043..c4a865e 100644
--- a/index.html
+++ b/index.html
@@ -129,35 +129,8 @@
</tr>
</thead>
<tbody>
- <tr>
- <td>1234</td>
- <td>Das ist ein Cart Titel</td>
- <td>57:14.120</td>
- <td>Mit, 17 Sep 2014 15:12:29</td>
- <td>1</td>
- <td>Fre, 19 Sep 2014 17:58:12</td>
- <td>
- <button class="btn btn-info btn-mini disabled"><i class="icon-arrow-up icon-white"></i></button>
- <button class="btn btn-info btn-mini"><i class="icon-arrow-down icon-white"></i></button>
- <button class="btn btn-danger btn-mini"><i class="icon-trash icon-white"></i> Löschen</button>
- </td>
- </tr>
- <tr>
- <td>1235</td>
- <td>-</td>
- <td>-</td>
- <td>-</td>
- <td>-</td>
- <td>-</td>
- <td>
- <button class="btn btn-info btn-mini"><i class="icon-arrow-up icon-white"></i></button>
- <button class="btn btn-info btn-mini disabled"><i class="icon-arrow-down icon-white"></i></button>
- <button class="btn btn-success btn-mini"><i class="icon-upload icon-white"></i> Importieren</button>
- </tr>
</tbody>
</table>
- <pre id='show-info-dumper'>
- </pre>
</div>
</div>
</div>
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 = {};