summaryrefslogtreecommitdiff
path: root/www/js/shows.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/shows.js')
-rw-r--r--www/js/shows.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/www/js/shows.js b/www/js/shows.js
index 2ab1af1..764e0c4 100644
--- a/www/js/shows.js
+++ b/www/js/shows.js
@@ -20,15 +20,18 @@
* along with rhwebimport. If not, see <http://www.gnu.org/licenses/>.
*/
+'use strict';
+
+var Rivendell = Rivendell || {};
+
var rivendell = null;
-var shows_currentid;
+var shows_currentid = null;
var shows_list = [];
var shows_current;
var shows_group_carts = {};
var shows_log_carts = [];
var shows_clock;
-
function shows_deleteCart(cart) {
rivendell.removeCart(cart, function() {
shows_updateGroupCartInfo(cart);
@@ -92,7 +95,7 @@ function shows_importCartConfirm(cart, dz) {
cart_row.replaceWith(importing_row);
dz.off("error");
- files = dz.getAcceptedFiles();
+ var files = dz.getAcceptedFiles();
importing_row.find('.file-name').text(files[0].name);
shows_importUpdateProgress(files[0], importing_row);
dz.on("uploadprogress", function(file) { shows_importUpdateProgress(file, importing_row); });
@@ -336,7 +339,7 @@ function shows_init() {
function shows_cleanup() {
$('#show-carts tbody').find('tr').remove();
sessionStorage.removeItem("shows_currentid");
- delete shows_currentid;
+ shows_currentid = null;
shows_list = [];
shows_group_carts = {};
shows_log_carts = [];