From 6f2d7a5dd61746a114488151cda132e032b10bb1 Mon Sep 17 00:00:00 2001 From: Peter Grassberger Date: Tue, 9 Feb 2016 22:21:15 +0100 Subject: musicpools: replace spinner diff --git a/www/js/jingles.js b/www/js/jingles.js index 86c1553..377f5b8 100644 --- a/www/js/jingles.js +++ b/www/js/jingles.js @@ -196,7 +196,6 @@ Rivendell.JingleCutView.prototype.render = function() { this.$spinner = $('#hiddenTemplates .spinnerTemplate').clone().removeClass('spinnerTemplate'); - this.$el = $('') .attr('id', 'jingle-' + this.model.cartNumber + '-' + this.model.number) .append($('').append(status)) diff --git a/www/js/musicpools.js b/www/js/musicpools.js index 6af133f..e77c23c 100644 --- a/www/js/musicpools.js +++ b/www/js/musicpools.js @@ -180,6 +180,7 @@ Rivendell.MusicpoolView.prototype.uploadProgress = function(file) { Rivendell.MusicpoolCartView = function(model) { this.model = model; + this.$spinner = null; this.$el = null; this.render(); @@ -213,6 +214,7 @@ Rivendell.MusicpoolCartView.prototype.render = function() { self.delete(); }); + this.$spinner = $('#hiddenTemplates .spinnerTemplate').clone().removeClass('spinnerTemplate'); this.$el = $('') .attr('id', 'musicpool-' + this.model.number) @@ -228,7 +230,7 @@ Rivendell.MusicpoolCartView.prototype.render = function() { }; Rivendell.MusicpoolCartView.prototype.delete = function() { - this.$el.find('td:last').html('') + this.$el.find('td:last').html(this.$spinner); var self = this; rivendell.removeCart(this.model.number, function() { -- cgit v0.10.2