diff options
author | Peter Grassberger <petertheone@gmail.com> | 2016-02-22 17:21:52 (GMT) |
---|---|---|
committer | Peter Grassberger <petertheone@gmail.com> | 2016-02-22 17:21:52 (GMT) |
commit | 7262a8e91ca8bb14bf58af8f8cf89e351aff288e (patch) | |
tree | 22fef7f2e770da0933f2f59483def62e50c4367c /www/js/shows.js | |
parent | 212c8cfbdaa51855ce8ec4f41f0b6bcf34373387 (diff) |
show import error in jingles and musicpools
Diffstat (limited to 'www/js/shows.js')
-rw-r--r-- | www/js/shows.js | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/www/js/shows.js b/www/js/shows.js index 1897352..1ba86b9 100644 --- a/www/js/shows.js +++ b/www/js/shows.js @@ -24,19 +24,9 @@ var Rivendell = Rivendell || {}; -/*var shows_currentid = null; -var shows_list = []; -var shows_current; -var shows_group_carts = {}; -var shows_log_carts = [];*/ - var showListView = null; function shows_init() { - /*shows_currentid = sessionStorage.getItem("shows_currentid"); - shows_list = []; - rdxport.listDropboxes('show', shows_updateList);*/ - var showList = new Rivendell.GroupList(); showListView = new Rivendell.ShowListView(showList); @@ -47,12 +37,6 @@ function shows_init() { function shows_cleanup() { $('#show-carts tbody').find('tr').remove(); importer.cancelAllUploads(); - - /*sessionStorage.removeItem("shows_currentid"); - shows_currentid = null; - shows_list = []; - shows_group_carts = {}; - shows_log_carts = [];*/ } Rivendell.ShowListView = function(model) { @@ -277,15 +261,12 @@ Rivendell.ShowView.prototype.uploadError = function(upload, file, msg, xhr, ackn var $errorRow = $('<tr>') .attr("id", "show-cart-" + file.cartNumber) .append($('<td>').text(file.cartNumber)) - .append($('<td>').addClass('file-name').text('-')) + .append($('<td>').addClass('file-name').text(file.name)) .append($('<td>').append($('<b>').text('Import Fehler'))) - .append($('<td colspan=3>').append(reason)) + .append($('<td colspan="3">').append(reason)) .append($('<td>').css('text-align', 'center').append(dismiss_button)); - var self = this; $('button', $errorRow).on('click', function() { - var $emptyRow = Rivendell.ShowCartView.renderEmpty(self.model, self, file.cartNumber); - $('#show-cart-' + file.cartNumber).replaceWith($emptyRow); acknowledge(); }); @@ -360,4 +341,3 @@ Rivendell.ShowCartView.prototype.delete = function() { self.$el.replaceWith($empty); }); }; - |