success_message=gettext("Your email was successfully queued for sending.")
send_to=@$send_to.val().toLowerCase()
ifsend_to=="myself"
send_to=gettext("yourself")
elseifsend_to=="staff"
send_to=gettext("everyone who is staff or instructor on this course")
else
send_to=gettext("ALL (everyone who is enrolled in this course as student, staff, or instructor)")
success_message=gettext("Your email was successfully queued for sending. Please note that for large public classes (~10k), it may take 1-2 hours to send all emails.")
subject=gettext(@$subject.val())
confirm_message=gettext("You are about to send an email titled \"#{subject}\" to #{send_to}. Is this OK?")
ifconfirmconfirm_message
...
...
@@ -46,21 +52,27 @@ class SendEmail
url:@$btn_send.data'endpoint'
data:send_data
success:(data)=>
@display_responsegettext('Your email was successfully queued for sending.')