mirror of https://github.com/docker/docs.git
Fixing JS error
This commit is contained in:
parent
f478f1bf0a
commit
aa7614f695
|
@ -9,10 +9,9 @@ $("#menu-toggle").click(function(e) {
|
||||||
$("#wrapper").toggleClass("toggled");
|
$("#wrapper").toggleClass("toggled");
|
||||||
});
|
});
|
||||||
|
|
||||||
var $body = $(document.body);
|
|
||||||
var navHeight = $('.navbar').outerHeight(true) + 10;
|
var navHeight = $('.navbar').outerHeight(true) + 10;
|
||||||
|
|
||||||
$body.scrollspy({
|
$(document.body).scrollspy({
|
||||||
target: '#leftCol',
|
target: '#leftCol',
|
||||||
offset: navHeight
|
offset: navHeight
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue