mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
hash dial take 2
This commit is contained in:
parent
6174a80e7c
commit
6f12de990a
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user