$(function () {
    $('[data-toggle="tooltip"]').tooltip();
});

$(function () {
    $(".collapse-button").click(function () {
        $(".collapse-button").toggleClass("glyphicon-chevron-down glyphicon-chevron-up")
    })
});
$(function () {
    $('[data-toggle="tooltip"]').tooltip();
});

function toggleChevron(e) {
    $(".collapse-button").toggleClass('glyphicon-chevron-down glyphicon-chevron-up');
}
$('.collapse').on('hidden.bs.collapse', toggleChevron);
$('.collapse').on('shown.bs.collapse', toggleChevron);

Make collapse button respond better to repeated clicks
Make collapse button respond better to repeated clicks
