diff options
-rw-r--r-- | index.html | 27 | ||||
-rw-r--r-- | js/shows.js | 12 |
2 files changed, 4 insertions, 35 deletions
@@ -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 = {}; |