From 0ae5c641091b36f527de0d828fc856b23d63f4a5 Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 11 Nov 2013 15:28:27 -0500 Subject: [PATCH] remove heading.click so only clicking on the "paragraph" link refreshes the page I think it makes sense to only navigate away when clicking on the paragraph tag, instead of being able to click the header. What do you think? --- js/basic_skeleton.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/js/basic_skeleton.js b/js/basic_skeleton.js index 3a4861cf..918d9ffb 100644 --- a/js/basic_skeleton.js +++ b/js/basic_skeleton.js @@ -1,4 +1,3 @@ - (function($) { var publicMethods = { createBasicSkeleton: function() { @@ -167,9 +166,6 @@ $heading.addClass('md-inpage-anchor'); var text = $heading.clone().children('.anchor-highlight').remove().end().text(); var href = $.md.util.getInpageAnchorHref(text); - $heading.click (function (){ - window.location.hash = href; - }); addPilcrow($heading, href); }); }