[diffoscope] 04/05: presenters: html: Make the diffcontrol headers clickable
Ximin Luo
infinity0 at debian.org
Wed Jun 21 23:10:30 CEST 2017
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch WIP/humungous-diffs
in repository diffoscope.
commit 8e32d930a67c37ccb8c51a38e708212edd2bcc3a
Author: Ximin Luo <infinity0 at debian.org>
Date: Wed Jun 21 18:28:47 2017 +0200
presenters: html: Make the diffcontrol headers clickable
---
diffoscope/presenters/html/templates.py | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/diffoscope/presenters/html/templates.py b/diffoscope/presenters/html/templates.py
index a6a5749..595bc58 100644
--- a/diffoscope/presenters/html/templates.py
+++ b/diffoscope/presenters/html/templates.py
@@ -125,6 +125,13 @@ HEADER = """<!DOCTYPE html>
cursor: pointer;
display: none; /* currently, only available in html-dir output where jquery is enabled */
}
+ .diffoscope .diffheader {
+ cursor: pointer;
+ }
+ .diffoscope .diffheader:hover .diffcontrol {
+ color: #080;
+ font-weight: bold;
+ }
.diffoscope .diffcontrol-double {
line-height: 250%%;
}
@@ -177,8 +184,8 @@ $(function() {
$(".ondemand-details").on('click', load_generic("div.difference > *"));
// activate [+]/[-] controls
var diffcontrols = $(".diffcontrol");
- diffcontrols.on('click', function(evt) {
- var control = $(this);
+ $(".diffheader").on('click', function(evt) {
+ var control = $(this).find(".diffcontrol");
var parent = control.parent();
var target = parent.siblings('table.diff, div.difference, div.comment');
var orig = target;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list