]> source.dussan.org Git - redmine.git/commitdiff
Code cleanup.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 28 Jul 2012 15:45:36 +0000 (15:45 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 28 Jul 2012 15:45:36 +0000 (15:45 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10093 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/repository_navigation.js

index aca92d51e97b0cb6e48e831ce7fc953df5815fa4..511f2e6d4a70e2fe7e76d5b6a2fd791c9d13bcdc 100644 (file)
@@ -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');
   });
 
   /*