From 2d02898524edaea90651cc02977dc02075fd07f5 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 13 Jan 2016 13:03:48 +0100 Subject: [PATCH] fix selector for jQuery 2.2, closes #5 --- _src/_assets/javascripts/bigchain/smoothscroll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_src/_assets/javascripts/bigchain/smoothscroll.js b/_src/_assets/javascripts/bigchain/smoothscroll.js index 326af1d..1c25ac7 100644 --- a/_src/_assets/javascripts/bigchain/smoothscroll.js +++ b/_src/_assets/javascripts/bigchain/smoothscroll.js @@ -21,7 +21,7 @@ var SmoothScroll = (function(w, d) { return _config.win.width() >= _config.minWidth; } - $('a[href*=#]:not([href=#]):not(.nav-tabs a[href*=#])').click(function(e) { + $("a[href*='#']").not("[href='#'], .nav a[href*='#']").click(function(e) { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']');