Files
FHC-Core/public/js/messaging/messageWriteReply.js
T
Paolo 565cf93f5d - Messages GUI multilingual
- Tabulator refresh fixed
2019-11-14 13:49:31 +01:00

31 lines
616 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
{
FHC_DialogLib.alertInfo("Subject and text are required fields!");
}
});
}
});