Skip to content

Commit

Permalink
Merge pull request #892 from sul-dlss/877-bugfix-show-hide-toc-toggle
Browse files Browse the repository at this point in the history
Bugfix: collapsible ToC should only respond to Bootstrap events
  • Loading branch information
mejackreed authored Nov 15, 2017
2 parents 96dd974 + 10d38eb commit 1d5f594
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/assets/javascripts/table_of_contents.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* global Blacklight */

Blacklight.onLoad(function() {

$('.blacklight-toc_search').on('click', function(){
$('.blacklight-toc_search').on('show.bs.collapse hide.bs.collapse', function(){
var _this = $(this);
var linkText = $(_this).find('span');

Expand Down

0 comments on commit 1d5f594

Please sign in to comment.