/* * rhwebimport * * Copyright (C) 2014-2015 Christian Pointner * * This file is part of rhwebimport. * * rhwebimport is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * rhwebimport is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with rhwebimport. If not, see . */ jingle_groups_list = []; function jingle_groups_updateList(data, status, req) { jingle_groups_list = []; $('#show-selector').find('option').remove(); var dblist = $(data).find("dropboxList"); var dbs = dblist.children(); dbs.each(function() { type = $(this).find('type').text(); if (type == 'jingle') { var jingle_group = { title: $(this).find('jingle-title').text(), group: { name: $(this).find('group').text(), description: $(this).find('group-description').text(), lowcart: $(this).find('group-low-cart').text(), highcart: $(this).find('group-high-cart').text(), }, normlevel: $(this).find('normalization-level').text(), trimlevel: $(this).find('autotrim-level').text(), }; var name = jingle_group.title; $('#jingle-selector').append($('