diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index c512f8e..5f2d7b1 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -1459,6 +1459,8 @@ $("#messagebox").attr('readonly', false); $("#messagebox").focus(); }); + } else if (event.keyCode == 13 && !shift_pressed && $(this).val().length <= 350) { + Materialize.toast('You are sending messages too long! 350 characters limit.', 10000); } });