hash dial take 2

This commit is contained in:
Anthony Minessale 2014-07-16 00:11:48 +05:00
parent 6174a80e7c
commit 6f12de990a
1 changed files with 16 additions and 0 deletions

View File

@ -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) {