From b1d21731adfc04adb654133988f3c8e444d8b240 Mon Sep 17 00:00:00 2001 From: fat Date: Sun, 4 Aug 2013 15:45:27 -0700 Subject: [PATCH] remove js anchor interference --- assets/css/docs.css | 1 - assets/js/application.js | 8 -------- 2 files changed, 9 deletions(-) diff --git a/assets/css/docs.css b/assets/css/docs.css index 56b5d1f390..154596b3eb 100644 --- a/assets/css/docs.css +++ b/assets/css/docs.css @@ -878,7 +878,6 @@ input.focused { width: 330px !important; min-height: 132px; } - } /* Large desktops and up */ diff --git a/assets/js/application.js b/assets/js/application.js index 54f9455f70..48c32681e5 100644 --- a/assets/js/application.js +++ b/assets/js/application.js @@ -20,14 +20,6 @@ e.preventDefault() }) - $body.on('click', '.bs-sidenav [href^=#]', function (e) { - var $target = $(this.getAttribute('href')) - - e.preventDefault() // prevent browser scroll - - $window.scrollTop($target.offset().top - navHeight + 5) - }) - // back to top setTimeout(function () { var $sideBar = $('.bs-sidebar')