[diffoscope] 03/05: presenters: html: Don't toggle buttons for diffs that haven't been loaded yet

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 e64e6337de50dc9e6d529da0540f4084e0cda1bc
Author: Ximin Luo <infinity0 at debian.org>
Date:   Mon Jun 19 23:07:20 2017 +0200

    presenters: html: Don't toggle buttons for diffs that haven't been loaded yet
---
 diffoscope/presenters/html/templates.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/diffoscope/presenters/html/templates.py b/diffoscope/presenters/html/templates.py
index d077ad5..a6a5749 100644
--- a/diffoscope/presenters/html/templates.py
+++ b/diffoscope/presenters/html/templates.py
@@ -184,8 +184,8 @@ $(function() {
     var orig = target;
     if (evt.shiftKey) {
         var gparent = parent.parent();
-        control = gparent.find('.diffcontrol');
-        target = gparent.find('table.diff, div.difference, div.comment');
+        target = gparent.find('table.diff, div.comment, div.difference');
+        control = target.parent().not(gparent).find('.diffcontrol');
     }
     if (orig.is(":visible")) {
         target.hide();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list