[PATCH 2 of 2 for stable] branches: fix 'compare branches' button

Thomas De Schampheleire patrickdepinguin at gmail.com
Sun Oct 11 20:14:02 UTC 2015


# HG changeset patch
# User Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
# Date 1444594182 -7200
#      Sun Oct 11 22:09:42 2015 +0200
# Node ID 7ea2562ed8ac1b35acaad1188b071afa1d29e9ad
# Parent  d99d46b9ed8092d27c1a8c535565285fdca73303
branches: fix 'compare branches' button

Commit b0774d79c7c95ec14ec6d23389d85ed544dd4b50 broke the 'Compare
branches' button on the repository branches page, when attempting to
replace a Yahoo UI click handler with jQuery.

diff --git a/kallithea/templates/branches/branches.html b/kallithea/templates/branches/branches.html
--- a/kallithea/templates/branches/branches.html
+++ b/kallithea/templates/branches/branches.html
@@ -31,7 +31,7 @@
 </div>
 
 <script type="text/javascript">
-$('#compare_branches','click',function(e){
+$('#compare_branches').click(function(e){
     e.preventDefault();
     var org = $('input[name=compare_org]:checked')[0];
     var other = $('input[name=compare_other]:checked')[0];


More information about the kallithea-general mailing list