diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-14 20:57:38 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-14 20:57:38 +0300 |
commit | ff7f4a134e4d62a22a38409b7f71c582d86f53d8 (patch) | |
tree | 540320d444a149960ad23727df55f28d5d769acf /app | |
parent | 55947addc35fcf21f80c8c3e9a7a9840ba1193c0 (diff) |
Revert "Scroll the readme anchors below the navbar."
This reverts commit b1792d9e4c28366ecc896e36d22099ab564c150f.
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/project_show.js.coffee | 15 | ||||
-rw-r--r-- | app/assets/javascripts/tree_show.js.coffee | 14 |
2 files changed, 0 insertions, 29 deletions
diff --git a/app/assets/javascripts/project_show.js.coffee b/app/assets/javascripts/project_show.js.coffee index 73818ecd0ed..02a7d7b731d 100644 --- a/app/assets/javascripts/project_show.js.coffee +++ b/app/assets/javascripts/project_show.js.coffee @@ -13,18 +13,3 @@ class @ProjectShow $("a[href=" + defaultView + "]").tab "show" else $("a[data-toggle='tab']:first").tab "show" - -$(document).ready -> - $(window).load (e) -> - e.preventDefault() - unless location.hash is "" - $("html, body").animate - scrollTop: $(".navbar").offset().top - $(".navbar").height() - , 200 - false - - $("a").click (e) -> - unless location.hash is "" - $("html,body").animate - scrollTop: $(this).offset().top - $(".navbar").height() - 3 - , 200 diff --git a/app/assets/javascripts/tree_show.js.coffee b/app/assets/javascripts/tree_show.js.coffee deleted file mode 100644 index 33300643dc4..00000000000 --- a/app/assets/javascripts/tree_show.js.coffee +++ /dev/null @@ -1,14 +0,0 @@ -$(document).ready -> - $(window).load (e) -> - e.preventDefault() - unless location.hash is "" - $("html, body").animate - scrollTop: $(".navbar").offset().top - $(".navbar").height() - , 200 - false - - $("a").click (e) -> - unless location.hash is "" - $("html,body").animate - scrollTop: $(this).offset().top - $(".navbar").height() - 3 - , 200 |