From ede5a6619886b61ba08217bdf21f24f28a0b73de Mon Sep 17 00:00:00 2001 From: MinRK Date: Sun, 24 Mar 2013 12:47:12 -0700 Subject: [PATCH] put the anchor inside the header tag instead of the other way around. This way, only clicking the text loads the hash link, rather than the whole area. --- IPython/frontend/html/notebook/static/js/textcell.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/IPython/frontend/html/notebook/static/js/textcell.js b/IPython/frontend/html/notebook/static/js/textcell.js index 90100b2db..ae2b77f5b 100644 --- a/IPython/frontend/html/notebook/static/js/textcell.js +++ b/IPython/frontend/html/notebook/static/js/textcell.js @@ -517,12 +517,12 @@ var IPython = (function (IPython) { var r = this.element.find("div.text_cell_render"); r.empty(); r.append( - $('') - .addClass('heading-link') - .attr('href', '#' + text) - .attr('name', text) + $('') .append( - $('') + $('') + .addClass('heading-link') + .attr('href', '#' + text) + .attr('name', text) .html(text) ) );