summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2014-10-07 16:33:51 (GMT)
committerChristian Pointner <equinox@helsinki.at>2014-10-07 16:33:51 (GMT)
commit5170f2b7f3ee46cb95f332c6e7a6401d42f7f922 (patch)
tree15a83db48dd749ba78f989bf96a2e73917229dfb /js
parent36526a3c1839846680241b48fd442bab8e735034 (diff)
improved error handling
Diffstat (limited to 'js')
-rw-r--r--js/shows.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/js/shows.js b/js/shows.js
index a0022b6..dc03156 100644
--- a/js/shows.js
+++ b/js/shows.js
@@ -24,23 +24,20 @@ function shows_importAddCart(cart, dz, file) {
}
function shows_importCartCancel(cart, dz) {
- var cart_row = $('#show-cart-' + cart)
- cart_row.next().remove();
- cart_row.find('.btn').removeAttr('disabled');
- cart_row.after(shows_getDzStat(true));
+ shows_deleteCart(cart);
dz.off("error");
dz.disable();
}
function shows_importFileUploadError(cart, dz, file, msg, xhr) {
- alert("import file upload error: " + msg);
+ alertbox.error('app-shows', "Import Fehler", $('<div>').append($('<pre>').text(msg)).html());
+ shows_deleteCart(cart);
dz.disable();
- shows_updateGroupCartInfo(cart);
}
function shows_importFileUploadSuccess(cart, dz, file) {
- dz.disable();
shows_updateGroupCartInfo(cart);
+ dz.disable();
}
function shows_importUpdateProgress(file, stats)