summaryrefslogtreecommitdiff
path: root/www/js/jingles.js
diff options
context:
space:
mode:
authorPeter Grassberger <petertheone@gmail.com>2015-12-28 12:27:07 (GMT)
committerPeter Grassberger <petertheone@gmail.com>2015-12-28 12:27:07 (GMT)
commitcb39c5af79db63c721123d9f488eda0d9c4fda63 (patch)
treeb93b8893de09ccd7df81b970a2923a361c94b582 /www/js/jingles.js
parent17d6568c4da2901e083770d3a6f683d3d98ff488 (diff)
client uses type to filter dropboxes
Diffstat (limited to 'www/js/jingles.js')
-rw-r--r--www/js/jingles.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/www/js/jingles.js b/www/js/jingles.js
index ca52269..1aa2489 100644
--- a/www/js/jingles.js
+++ b/www/js/jingles.js
@@ -51,13 +51,9 @@ JingleGroupList.prototype.fetch = function() {
$('#app-jingles .groups').html('');
var self = this;
- rivendell.listDropboxes(function(groupsXml, status, req) {
+ rivendell.listDropboxes('jingle', function(groupsXml, status, req) {
var dbs = $(groupsXml).find("dropboxList").children();
dbs.each(function(index, groupXml) {
- if ($('type', groupXml).text() !== 'jingle') {
- return true; // continue
- }
-
var jingleGroup = new JingleGroup(
$('jingle-title', groupXml).text(),
$('group', groupXml).text(),