diff options
Diffstat (limited to 'docs/assets/js/src')
| -rw-r--r-- | docs/assets/js/src/application.js | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/docs/assets/js/src/application.js b/docs/assets/js/src/application.js index 792fc9779..69a19707c 100644 --- a/docs/assets/js/src/application.js +++ b/docs/assets/js/src/application.js @@ -21,7 +21,7 @@ var $body = $(document.body) $body.scrollspy({ - target: '.bs-docs-sidebar' + target: '.active .bs-docs-sidenav' }) $window.on('load', function () { $body.scrollspy('refresh') @@ -33,28 +33,28 @@ }) // Sidenav affixing - setTimeout(function () { - var $sideBar = $('.bs-docs-sidebar') - - $sideBar.affix({ - offset: { - top: function () { - var offsetTop = $sideBar.offset().top - var sideBarMargin = parseInt($sideBar.children(0).css('margin-top'), 10) - var navOuterHeight = $('.bs-docs-nav').height() - - return (this.top = offsetTop - navOuterHeight - sideBarMargin) - }, - bottom: function () { - return (this.bottom = $('.bs-docs-footer').outerHeight(true)) - } - } - }) - }, 100) - - setTimeout(function () { - $('.bs-top').affix() - }, 100) + // setTimeout(function () { + // var $sideBar = $('.bs-docs-sidebar') + + // $sideBar.affix({ + // offset: { + // top: function () { + // var offsetTop = $sideBar.offset().top + // var sideBarMargin = parseInt($sideBar.children(0).css('margin-top'), 10) + // var navOuterHeight = $('.bs-docs-nav').height() + + // return (this.top = offsetTop - navOuterHeight - sideBarMargin) + // }, + // bottom: function () { + // return (this.bottom = $('.bs-docs-footer').outerHeight(true)) + // } + // } + // }) + // }, 100) + + // setTimeout(function () { + // $('.bs-top').affix() + // }, 100) // theme toggler ;(function () { |
