From: Jean-Philippe Lang Date: Sat, 28 Jul 2012 15:45:36 +0000 (+0000) Subject: Code cleanup. X-Git-Tag: 2.1.0~230 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1a088fb31e5cdb5e29ff8a10eee432c1649ce7b1;p=redmine.git Code cleanup. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10093 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/public/javascripts/repository_navigation.js b/public/javascripts/repository_navigation.js index aca92d51e..511f2e6d4 100644 --- a/public/javascripts/repository_navigation.js +++ b/public/javascripts/repository_navigation.js @@ -13,13 +13,11 @@ $(document).ready(function() { Copy the branch/tag value into the revision box, then disable the dropdowns before submitting the form */ - $('#branch,#tag').each(function() { - $(this).change(function() { - $('#rev').val($(this).val()); - $('#branch,#tag').attr('disabled', true); - $(this).parent().submit(); - $('#branch,#tag').removeAttr('disabled'); - }); + $('#branch,#tag').change(function() { + $('#rev').val($(this).val()); + $('#branch,#tag').attr('disabled', true); + $(this).parent().submit(); + $('#branch,#tag').removeAttr('disabled'); }); /*