summaryrefslogtreecommitdiff
path: root/www/js/jingles.js
diff options
context:
space:
mode:
authorPeterTheOne <petertheone@gmail.com>2016-01-29 13:34:18 (GMT)
committerPeterTheOne <petertheone@gmail.com>2016-01-29 13:34:18 (GMT)
commitc09725d1a62830d69daf8d286638e0d334394f78 (patch)
treec4ca5a3c66fa3c71a2398977225f167da96e78f5 /www/js/jingles.js
parentdb074d0f87558ad22d8b50e5eea6f87df9f3559e (diff)
fix login and logout
Diffstat (limited to 'www/js/jingles.js')
-rw-r--r--www/js/jingles.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/www/js/jingles.js b/www/js/jingles.js
index d80dd95..fbc0807 100644
--- a/www/js/jingles.js
+++ b/www/js/jingles.js
@@ -58,6 +58,14 @@ var JingleGroupListView = function(model) {
this.model.fetch('jingle');
};
+JingleGroupListView.prototype.destroy = function() {
+ var self = this;
+ $(this.jingleGroupViews).each(function(index, groupView) {
+ groupView.destroy();
+ });
+ this.jingleGroupViews = [];
+};
+
var JingleGroup = function(groupName, description, lowcart, highcart, normlevel, trimlevel, title) {
if (arguments.length = 1) {
Rivendell.Group.call(this, groupName);