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

View File

@ -13,14 +13,12 @@ $(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');
}); });
});
/* /*
Disable the branch/tag dropdowns before submitting the revision form Disable the branch/tag dropdowns before submitting the revision form