diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-24 22:47:31 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-24 22:47:31 -0500 |
commit | 77551200ec2fb5cd86cac23f43d883cfd4fe9bd3 (patch) | |
tree | 7196a69c54a746e32e5cbc9b938d432ed5f9b946 /coverage/htmlfiles/pyfile.html | |
parent | 128d48771f80efe342b99332b0ebe43f6a27daf7 (diff) | |
download | python-coveragepy-77551200ec2fb5cd86cac23f43d883cfd4fe9bd3.tar.gz |
When partial lines are hidden and run lines are shown, then partial lines are shown as run.
Diffstat (limited to 'coverage/htmlfiles/pyfile.html')
-rw-r--r-- | coverage/htmlfiles/pyfile.html | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html index ca65152..566244f 100644 --- a/coverage/htmlfiles/pyfile.html +++ b/coverage/htmlfiles/pyfile.html @@ -8,13 +8,14 @@ <script type='text/javascript'>
function toggle_lines(btn, cls) {
var btn = $(btn);
- if (btn.hasClass("hide")) {
- $("#source ."+cls).removeClass("hide");
- btn.removeClass("hide");
+ var hide = "hide_"+cls;
+ if (btn.hasClass(hide)) {
+ $("#source ."+cls).removeClass(hide);
+ btn.removeClass(hide);
}
else {
- $("#source ."+cls).addClass("hide");
- btn.addClass("hide");
+ $("#source ."+cls).addClass(hide);
+ btn.addClass(hide);
}
}
</script>
|