Code cleanup.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10093 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-07-28 15:45:36 +00:00
parent 6e7507d580
commit 1a088fb31e
1 changed files with 5 additions and 7 deletions

View File

@ -13,13 +13,11 @@ $(document).ready(function() {
Copy the branch/tag value into the revision box, then disable Copy the branch/tag value into the revision box, then disable
the dropdowns before submitting the form the dropdowns before submitting the form
*/ */
$('#branch,#tag').each(function() { $('#branch,#tag').change(function() {
$(this).change(function() { $('#rev').val($(this).val());
$('#rev').val($(this).val()); $('#branch,#tag').attr('disabled', true);
$('#branch,#tag').attr('disabled', true); $(this).parent().submit();
$(this).parent().submit(); $('#branch,#tag').removeAttr('disabled');
$('#branch,#tag').removeAttr('disabled');
});
}); });
/* /*