summaryrefslogtreecommitdiff
path: root/www/js/shows.js
diff options
context:
space:
mode:
authorPeterTheOne <petertheone@gmail.com>2016-01-28 20:29:46 (GMT)
committerPeterTheOne <petertheone@gmail.com>2016-01-28 20:29:46 (GMT)
commita3d085734454a66955bcc2c642b0a4f7bf5d2b92 (patch)
treed290b36b2eb96d6350ec31e02e2a9e2f0c93b14c /www/js/shows.js
parent7aa6781c617b91e3ed28d528428087f11131daac (diff)
fix musicgrid bugs, create Rivendell.Group class, refactor
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 = [];