From 4c8ee4ced1cbf6a780da4ce7c78f90f1d86ceb14 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Sun, 5 Aug 2018 07:55:18 +0000 Subject: [PATCH] Focus messagebox when clicking the chat body --- webapp/titanembeds/static/js/embed.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index 874f021..0e254da 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -311,6 +311,12 @@ } }); + $("#chatcontent").click(function () { + if (!$('#messagebox').prop('disabled')) { + $("#messagebox").focus(); + } + }); + if (disabled) { Materialize.toast('This server is currently disabled. If you are an administrator of this server, please get in touch with a TitanEmbeds team member to lift the ban.', 100000); return;