Don't allow Zephyr users to send messages when not linked to webathena.

(imported from commit 03362a52e958aa1913ffb8bfa22ba57fa1697d7c)
This commit is contained in:
Tim Abbott 2013-11-20 18:48:03 -05:00
parent f0c6b63526
commit bfd01454f8
1 changed files with 8 additions and 1 deletions

View File

@ -333,7 +333,9 @@ function compose_error(error_text, bad_input) {
$('#error-msg').html(error_text);
$("#compose-send-button").removeAttr('disabled');
$("#sending-indicator").hide();
if (bad_input !== undefined) {
bad_input.focus().select();
}
}
var send_options;
@ -649,6 +651,11 @@ exports.validate = function () {
return false;
}
if ($("#zephyr-mirror-error").is(":visible")) {
compose_error("You need to link with Webathena before you can send messages!");
return false;
}
if (exports.composing() === 'private') {
return validate_private_message();
} else {