edvancombr Posted September 6, 2018 Share Posted September 6, 2018 Hi, When answering a ticket (administrative area) you can use the command combination (CTRL + ENTER) and the ticket will be answered. <?php /** * CTRL + Enter - Reply Ticket Admin * @author edvancombr - whmcs.blog.br */ function hook_replyticketadmin($vars) { if ($vars[filename]=="supporttickets"){ $script='<script type="text/javascript">window.onload = function () { document.getElementById("replymessage").onkeydown = function (e) { if (e.keyCode == 13 && e.ctrlKey){ document.getElementById("btnPostReply").click(); // WHMCS v7.x //document.getElementById("postreplybutton").click(); // WHMCS v6.x return false; } } } </script>'; return $script; } } add_hook("AdminAreaHeadOutput",1,"hook_replyticketadmin"); https://www.whmcs.blog.br/principal/customizacao-area-administrativa-respondendo-ticket/ 0 Quote Link to comment Share on other sites More sharing options...
edvancombr Posted September 6, 2018 Author Share Posted September 6, 2018 @WHMCS ChrisD I did the above posting in order to share the idea but did not know that it was forbidden to refer through external links. Please edit the publication, thank you. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.