diff options
Diffstat (limited to 'www')
-rw-r--r-- | www/js/jingles.js | 1 | ||||
-rw-r--r-- | www/js/musicpools.js | 4 |
2 files changed, 3 insertions, 2 deletions
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 = $('<tr>') .attr('id', 'jingle-' + this.model.cartNumber + '-' + this.model.number) .append($('<td>').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 = $('<tr>') .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('<span class="label label-default"><span class="glyphicon glyphicon-repeat spin"></span></span>') + this.$el.find('td:last').html(this.$spinner); var self = this; rivendell.removeCart(this.model.number, function() { |