From: Anthony Minessale Date: Thu, 24 Jul 2014 16:03:36 +0000 (+0500) Subject: add enter press detection to the extension field to auto-dial X-Git-Tag: v1.4.8~10^2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c735f5c1a4f6a61181f2ced78dd55a6456333493;p=thirdparty%2Ffreeswitch.git add enter press detection to the extension field to auto-dial --- diff --git a/html5/verto/demo/verto.js b/html5/verto/demo/verto.js index 56700c6a9d..6e05941a0f 100644 --- a/html5/verto/demo/verto.js +++ b/html5/verto/demo/verto.js @@ -414,6 +414,13 @@ function init() { setupChat(); + $("#ext").keyup(function (event) { + if (event.keyCode == 13) { + $( "#callbtn" ).trigger( "click" ); + } + }); + + } $(document).ready(function() {