From 97362eb3b3f87f868bbd641aed3755c6e39cfcc8 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 6 Dec 2009 19:59:39 -0500 Subject: Make the two html templates more similar in style. --- coverage/htmlfiles/coverage_html.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'coverage/htmlfiles/coverage_html.js') diff --git a/coverage/htmlfiles/coverage_html.js b/coverage/htmlfiles/coverage_html.js index c0abab8..faea61a 100644 --- a/coverage/htmlfiles/coverage_html.js +++ b/coverage/htmlfiles/coverage_html.js @@ -62,3 +62,18 @@ function index_page_ready($) { document.cookie = cookie_name + "=" + sort_list.toString() + "; path=/" }); } + +// -- pyfile stuff -- + +function toggle_lines(btn, cls) { + var btn = $(btn); + var hide = "hide_"+cls; + if (btn.hasClass(hide)) { + $("#source ."+cls).removeClass(hide); + btn.removeClass(hide); + } + else { + $("#source ."+cls).addClass(hide); + btn.addClass(hide); + } +} -- cgit v1.2.1 From 5a78a24b1ab693ebc5982b7f3e01400c784c24dd Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 6 Dec 2009 20:11:03 -0500 Subject: Clean up HTML files. --- coverage/htmlfiles/coverage_html.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'coverage/htmlfiles/coverage_html.js') diff --git a/coverage/htmlfiles/coverage_html.js b/coverage/htmlfiles/coverage_html.js index faea61a..b70712c 100644 --- a/coverage/htmlfiles/coverage_html.js +++ b/coverage/htmlfiles/coverage_html.js @@ -33,7 +33,7 @@ function index_page_ready($) { } else { // This is not the first load - something has - // already defined sorting so we'll just update + // already defined sorting so we'll just update // our stored value to match: sort_list = table.config.sortList; } @@ -58,8 +58,8 @@ function index_page_ready($) { }); // Watch for page unload events so we can save the final sort settings: - $(window).unload(function() { - document.cookie = cookie_name + "=" + sort_list.toString() + "; path=/" + $(window).unload(function() { + document.cookie = cookie_name + "=" + sort_list.toString() + "; path=/" }); } -- cgit v1.2.1