From 1a088fb31e5cdb5e29ff8a10eee432c1649ce7b1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 28 Jul 2012 15:45:36 +0000 Subject: [PATCH] Code cleanup. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10093 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- public/javascripts/repository_navigation.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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'); }); /*