From 2a65c8238ed4bbbc5e409675b3919b06964fda7b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 28 Jun 2015 02:33:38 +0200 Subject: improved import error visualization diff --git a/www/js/shows.js b/www/js/shows.js index 54c0cb7..8ebea41 100644 --- a/www/js/shows.js +++ b/www/js/shows.js @@ -54,6 +54,7 @@ function shows_importFileUploadError(cart, dz, file, msg, xhr) { var error_row = shows_newImportErrorEntry(cart, msg); error_row.find('button').unbind('click').click(function() { shows_deleteCart(cart); }); $('#show-cart-' + cart).replaceWith(error_row); + error_row.find('.file-name').text(file.name); dz.disable(); } @@ -185,7 +186,7 @@ function shows_newImportingEntry(cart) { } function shows_newImportErrorEntry(cart, msg) { - var dismiss_button = ''; var xmlDoc = $.parseXML(msg); -- cgit v0.10.2