From 62d8c7049747d5d529bb16f2427b1130ac1b6e93 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 24 Feb 2010 21:06:10 -0500 Subject: Latest sample HTML output --- doc/sample_html/coverage_html.js | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'doc/sample_html/coverage_html.js') diff --git a/doc/sample_html/coverage_html.js b/doc/sample_html/coverage_html.js index c0abab81..b70712c4 100644 --- a/doc/sample_html/coverage_html.js +++ b/doc/sample_html/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,7 +58,22 @@ 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=/" }); } + +// -- 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