]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add enter press detection to the extension field to auto-dial
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 24 Jul 2014 16:03:36 +0000 (21:03 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 24 Jul 2014 16:03:40 +0000 (21:03 +0500)
html5/verto/demo/verto.js

index 56700c6a9de261704ac623f03e0c13e9f65b3857..6e05941a0f4c5765f48b50e103606e34eeeec322 100644 (file)
@@ -414,6 +414,13 @@ function init() {
 
     setupChat();
 
+    $("#ext").keyup(function (event) {
+       if (event.keyCode == 13) {
+           $( "#callbtn" ).trigger( "click" );   
+       }
+    });
+
+
 }
 
 $(document).ready(function() {