summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-02-05 17:42:58 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-02-05 17:42:58 (GMT)
commit8f3e1153bdc0297038340c0ec559dc622065c232 (patch)
treefbbb4af0d237d22e5716f11023e04ca72bc29436 /www/js
parent5a577416e669d3ae8d4f26947367a08540bc9a03 (diff)
instant feedback for jingle action buttons
Diffstat (limited to 'www/js')
-rw-r--r--www/js/jingles.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/www/js/jingles.js b/www/js/jingles.js
index 70d84f9..fb36934 100644
--- a/www/js/jingles.js
+++ b/www/js/jingles.js
@@ -209,6 +209,7 @@ Rivendell.JingleCutView.prototype.render = function() {
};
Rivendell.JingleCutView.prototype.move = function() {
+ this.$el.find('td:first').html('<span class="label label-default"><span class="glyphicon glyphicon-repeat spin"></span></span>')
var self = this;
var destinationCart = this.model.cartNumber;
@@ -237,6 +238,7 @@ Rivendell.JingleCutView.prototype.move = function() {
};
Rivendell.JingleCutView.prototype.toggleActive = function() {
+ this.$el.find('td:first').html('<span class="label label-default"><span class="glyphicon glyphicon-repeat spin"></span></span>')
var destinationCart = this.model.cartNumber;
if (this.model.active) {
destinationCart++;
@@ -250,6 +252,7 @@ Rivendell.JingleCutView.prototype.toggleActive = function() {
};
Rivendell.JingleCutView.prototype.delete = function() {
+ this.$el.find('td:first').html('<span class="label label-default"><span class="glyphicon glyphicon-repeat spin"></span></span>')
var self = this;
rivendell.removeCut(this.model.cartNumber, this.model.number, function() {
self.model.cart.removeCut(self.model);