From 4e34aa639ad1c829a28e4ac98d9851699210a803 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 15 Jul 2014 23:01:56 +0500 Subject: [PATCH] hash auto dialing --- html5/verto/demo/verto.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/html5/verto/demo/verto.js b/html5/verto/demo/verto.js index 393641dc5d..65d23bb03c 100644 --- a/html5/verto/demo/verto.js +++ b/html5/verto/demo/verto.js @@ -368,6 +368,13 @@ function init() { $(document).ready(function() { init(); $("#page-incall").on("pagebeforechange", function(event) {}); + + if (window.location.hash) { + var hash = window.location.hash.substring(1); + $("#ext").val(hash); + $("#callbtn").trigger("click"); + } + }); $(document).bind("pagebeforechange", function(e, data) {