From 32fef009188592ec68e98866f6088b7427db2179 2013-03-24 19:47:12 From: MinRK Date: 2013-03-24 19:47:12 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. --- diff --git a/IPython/frontend/html/notebook/static/js/textcell.js b/IPython/frontend/html/notebook/static/js/textcell.js index 90100b2..ae2b77f 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) ) );