From: Anthony Minessale Date: Tue, 15 Jul 2014 19:11:48 +0000 (+0500) Subject: hash dial take 2 X-Git-Tag: v1.4.8~10^2~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f12de990a462ffec7b6f6d5c70abff4199f8f88;p=thirdparty%2Ffreeswitch.git hash dial take 2 --- diff --git a/html5/verto/demo/verto.js b/html5/verto/demo/verto.js index 393641dc5d..e4017e7dcb 100644 --- a/html5/verto/demo/verto.js +++ b/html5/verto/demo/verto.js @@ -366,8 +366,24 @@ function init() { } $(document).ready(function() { + var autocall = false; + var hash = window.location.hash.substring(1); + + if (hash && hash.indexOf("page-") == -1) { + window.location.hash = ""; + autocall = true; + } + init(); + $("#page-incall").on("pagebeforechange", function(event) {}); + + if (autocall) { + $("#ext").val(hash); + $("#callbtn").trigger("click"); + } + + }); $(document).bind("pagebeforechange", function(e, data) {