Fix focus on create/sub buttons if you try to send to a new/unsubscribed class.

This is a regression introduced by switching from links to buttons,
which get blurred by hide_compose.

(imported from commit f5aa67cb949f3edc7f86a0ef0d7f48b43860138b)
This commit is contained in:
Jessica McKellar 2012-10-09 14:06:56 -04:00
parent 9544964277
commit ad213fc810
1 changed files with 2 additions and 2 deletions

View File

@ -86,9 +86,9 @@ function check_class_for_send(class_name) {
$('#send-status').removeClass(status_classes).show();
$('#class-dne-name').text(class_name);
$('#class-dne').show();
$('#create-it').focus();
submit_buttons().removeAttr('disabled');
hide_compose();
$('#create-it').focus();
}
$("#home-error").hide();
},
@ -127,9 +127,9 @@ function validate_class_message() {
$('#send-status').removeClass(status_classes).show();
$('#class-nosub-name').text(class_name);
$('#class-nosub').show();
$('#sub-it').focus();
submit_buttons().removeAttr('disabled');
hide_compose();
$('#sub-it').focus();
return false;
}