summaryrefslogtreecommitdiffstats
path: root/public/javascripts
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-28 15:45:36 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-28 15:45:36 +0000
commit1a088fb31e5cdb5e29ff8a10eee432c1649ce7b1 (patch)
treeca4a901161177a2fdd887200841176ebc626aa0c /public/javascripts
parent6e7507d5800791cbe373465d0949c2a53c8f864d (diff)
downloadredmine-1a088fb31e5cdb5e29ff8a10eee432c1649ce7b1.tar.gz
redmine-1a088fb31e5cdb5e29ff8a10eee432c1649ce7b1.zip
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10093 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts')
-rw-r--r--public/javascripts/repository_navigation.js12
1 files 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');
});
/*