//
// accordionExpand.js
//
// Checks for hash in url and
// expands an accordion list
// =============================
jQuery(document).ready(function($) {
var hash = window.location.hash, // Hash from the url
accordionGroup = $('.panel.list-group'), // List groups
accordionExists = accordionGroup.length;
// If url fragment and accordion both exist...
if(hash && accordionExists) {
// Find the button sibling of the anchor and click it
accordionGroup.find(hash).siblings('button.list-group-item').click();
}
});