1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-28 23:06:20 +01:00

fix selector for jQuery 2.2, closes #5

This commit is contained in:
Matthias Kretschmann 2016-01-13 13:03:48 +01:00
parent 84d32102df
commit 2d02898524

View File

@ -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) +']');