diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-03-14 09:30:43 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-03-14 09:30:43 -0400 |
commit | 4e95c554e52b4a468dbfd4c493f60932ecb4e102 (patch) | |
tree | 7ba0a30178a84ee7eaa3c0cd816643d3664a82fb /coverage/htmlfiles/coverage_html.js | |
parent | 6c42c429cbda623681c7db28f7943ad3c458a989 (diff) | |
parent | 1bde001d3be2814c3e49d1927b22f2d15193b1d9 (diff) | |
download | python-coveragepy-git-4e95c554e52b4a468dbfd4c493f60932ecb4e102.tar.gz |
Automated merge with ssh://hg@bitbucket.org/ned/coveragepy/
Diffstat (limited to 'coverage/htmlfiles/coverage_html.js')
-rw-r--r-- | coverage/htmlfiles/coverage_html.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/coverage/htmlfiles/coverage_html.js b/coverage/htmlfiles/coverage_html.js index 2acba5c2..b6bde6ca 100644 --- a/coverage/htmlfiles/coverage_html.js +++ b/coverage/htmlfiles/coverage_html.js @@ -65,6 +65,14 @@ function index_page_ready($) { // -- pyfile stuff -- +function pyfile_ready($) { + // If we're directed to a particular line number, highlight the line. + var frag = location.hash; + if (frag.length > 2 && frag[1] == 'n') { + $(frag).addClass('highlight'); + } +} + function toggle_lines(btn, cls) { btn = $(btn); var hide = "hide_"+cls; |