Sha256: ede82d00397e1003ab39171b93cb05b89068359cb05ae8ad5fa0215e4d7932e6
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
/** Copyright 2014 Red Hat, Inc. This software is licensed to you under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License (GPLv2) or (at your option) any later version. There is NO WARRANTY for this software, express or implied, including the implied warranties of MERCHANTABILITY, NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 along with this software; if not, see http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. */ function toggle_form(form) { if (form.is(':hidden')) { form.show(); } else { form.hide(); } } $(document).ready(function() { $("#new_product").hide(); $('#add_product').click(function() { $("#new_product").toggle(); }); $('div[id^="new_repo_form_"]').hide(); $('div[id^="add_repository_"]').click(function() { var form = $(this).closest("ul[id^=repo_list_]").next("div[id^=new_repo_form_]"); toggle_form(form); }); $('#products_repos .clickable').click(function(){ $(this).parents('ul').find('ul').slideToggle(); var arrow = $(this); if(arrow.attr("src").indexOf("collapsed") === -1){ arrow.attr("src", KT.common.rootURL() + "assets/icons/expander-collapsed.png"); } else { arrow.attr("src", KT.common.rootURL() + "assets/icons/expander-expanded.png"); } return false; }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
katello-2.2.2 | app/assets/javascripts/katello/providers/products_repos.js |