summaryrefslogtreecommitdiff
path: root/www/js/jingles.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/jingles.js')
-rw-r--r--www/js/jingles.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/www/js/jingles.js b/www/js/jingles.js
index 8d6ae38..960dd25 100644
--- a/www/js/jingles.js
+++ b/www/js/jingles.js
@@ -166,7 +166,7 @@ Rivendell.JingleCutView.prototype.render = function() {
self.toggleActive();
});
deleteButton.on('click', function() {
- self.removeSelf();
+ self.delete();
});
this.$el = $('<tr>')
@@ -222,10 +222,10 @@ Rivendell.JingleCutView.prototype.toggleActive = function() {
});
};
-Rivendell.JingleCutView.prototype.removeSelf = function() {
+Rivendell.JingleCutView.prototype.delete = function() {
var self = this;
rivendell.removeCut(this.model.cartNumber, this.model.number, function() {
- self.model.cart.removeCut(this);
+ self.model.cart.removeCut(self.model);
self.$el.remove();
});
};