summaryrefslogtreecommitdiff
path: root/doc/sample_html/coverage_html.js
diff options
context:
space:
mode:
Diffstat (limited to 'doc/sample_html/coverage_html.js')
-rw-r--r--doc/sample_html/coverage_html.js21
1 files changed, 18 insertions, 3 deletions
diff --git a/doc/sample_html/coverage_html.js b/doc/sample_html/coverage_html.js
index c0abab8..b70712c 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);
+ }
+}