# HG changeset patch # User Mads Kiilerich # Date 2015-08-26 17:28:59 # Node ID a4b8148042637a00ad46998b246d63beb6de49f2 # Parent 322e17eb356a1a7caffd38616e994de70fd4ce10 changelog: show changesets outside the selected range as semi-opaque This makes it even more clear that 'show changeset range' is weird ... diff --git a/kallithea/public/css/style.css b/kallithea/public/css/style.css --- a/kallithea/public/css/style.css +++ b/kallithea/public/css/style.css @@ -2375,6 +2375,7 @@ BIN_FILENODE = 6 border-color: #cdcdcd; } +#graph_content #changesets tr.out-of-range, #graph_content #changesets tr.mergerow { opacity: 0.5; } diff --git a/kallithea/templates/changelog/changelog.html b/kallithea/templates/changelog/changelog.html --- a/kallithea/templates/changelog/changelog.html +++ b/kallithea/templates/changelog/changelog.html @@ -196,6 +196,19 @@ ${self.repo_context_bar('changelog', c.f $('#rev_range_clear').show(); $('#compare_fork').hide(); + var disabled = true; + $checkboxes.each(function(){ + var $this = $(this); + if (disabled) { + if ($this.prop('checked')) + disabled = false; + $this.closest('tr').toggleClass('out-of-range', disabled); + } else { + $this.closest('tr').toggleClass('out-of-range', false); + if ($this.prop('checked')) + disabled = true; + } + }); } else { $('#rev_range_container').hide(); $('#rev_range_clear').hide(); @@ -211,6 +224,7 @@ ${self.repo_context_bar('changelog', c.f $('#open_new_pr').html(_TM['Open New Pull Request from {0}'].format('${c.first_revision.branch}')); %endif $('#compare_fork').show(); + $checkboxes.closest('tr').removeClass('out-of-range'); } }; checkbox_checker();