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:
parent
84d32102df
commit
2d02898524
@ -21,7 +21,7 @@ var SmoothScroll = (function(w, d) {
|
|||||||
return _config.win.width() >= _config.minWidth;
|
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) {
|
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
|
||||||
var target = $(this.hash);
|
var target = $(this.hash);
|
||||||
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
|
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
|
||||||
|
Loading…
Reference in New Issue
Block a user