Files
FHC-Core/public/js/messaging/messageWriteReply.js
T
Paolo 085d612d94 - Added new view system/messages/messageReplySent.php to show the message reply delivery status
- system/messages/messageSent.php is now used to thow message delivery status
- Moved JS from view system/messages/messageWriteReply.php to public/js/messaging/messageWriteReply.js
2019-02-07 14:18:32 +01:00

31 lines
598 B
JavaScript

/**
* JS used by view system/messages/messageWriteReply
*/
$(document).ready(function ()
{
tinymce.init({
selector: "#bodyTextArea",
plugins: "autoresize",
autoresize_min_height: 150,
autoresize_max_height: 600,
autoresize_bottom_margin: 10,
auto_focus: "bodyTextArea"
});
if ($("#sendButton") && $("#sendForm"))
{
$("#sendButton").click(function () {
if ($("#subject") && $("#subject").val() != '' && tinyMCE.get("bodyTextArea").getContent() != '')
{
$("#sendForm").submit();
}
else
{
alert("Subject and text are required fields!");
}
});
}
});