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'); }); /*