summaryrefslogtreecommitdiff
path: root/www/js/rivendell.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/rivendell.js')
-rw-r--r--www/js/rivendell.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/www/js/rivendell.js b/www/js/rivendell.js
index 4de038e..18d28af 100644
--- a/www/js/rivendell.js
+++ b/www/js/rivendell.js
@@ -55,7 +55,9 @@ Rivendell.Rivendell.prototype.copyCut = function(sourceCartNumber, sourceCutNumb
var self = this;
this.addCut(destinationCartNumber, function(data, textStatus, jqXHR) {
var destinationCutNumber = $('cutAdd cut cutNumber', data).text();
- self.copyAudio(sourceCartNumber,sourceCutNumber, destinationCartNumber, destinationCutNumber, success);
+ self.copyAudio(sourceCartNumber,sourceCutNumber, destinationCartNumber, destinationCutNumber, success).fail(function() {
+ self.removeCut(destinationCartNumber, destinationCutNumber, null);
+ });
});
};