/* $This file is distributed under the terms of the license in /doc/license.txt$ */ // This file extends and proxies the default behavior defined in vitro/webapp/web/js/menupage/browseByVClass.js // Saving the original getIndividuals function from browseByVClass var getPersonIndividuals = browseByVClass.getIndividuals; // Assigning the proxy function browseByVClass.getIndividuals = function(vclassUri, alpha, page) { url = this.dataServiceUrl + encodeURIComponent(vclassUri); if ( alpha && alpha != "all") { url = url + '&alpha=' + alpha; } if ( page ) { url += '&page=' + page; } else { page = 1; } // First wipe currently displayed individuals and existing pagination this.individualsInVClass.empty(); $('nav.pagination').remove(); $.getJSON(url, function(results) { // Check to see if we're dealing with pagination if ( results.pages.length ) { pages = results.pages; pagination = '