From ad213fc81069b8a36627d7a2d96cd44c509b9a7f Mon Sep 17 00:00:00 2001 From: Jessica McKellar Date: Tue, 9 Oct 2012 14:06:56 -0400 Subject: [PATCH] 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) --- zephyr/static/js/compose.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zephyr/static/js/compose.js b/zephyr/static/js/compose.js index 1db9e64fa3..05a8d25c5e 100644 --- a/zephyr/static/js/compose.js +++ b/zephyr/static/js/compose.js @@ -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; }