forked from Mirrors/freeswitch
FS-8076 [verto_communicator] Ask before closing the page if a call is in progress.
This commit is contained in:
parent
d314873b2a
commit
ecf5a0ce5c
@ -2667,6 +2667,9 @@
|
||||
$.verto.unloadJobs[f]();
|
||||
}
|
||||
|
||||
if ($.verto.haltClosure)
|
||||
return $.verto.haltClosure();
|
||||
|
||||
for (var i in $.verto.saved) {
|
||||
var verto = $.verto.saved[i];
|
||||
if (verto) {
|
||||
|
@ -10,6 +10,12 @@
|
||||
$rootScope.dtmfHistory = { value: '' };
|
||||
$rootScope.onKeydownDtmfEnabled = true;
|
||||
|
||||
$.verto.haltClosure = function() {
|
||||
if (verto.data.callState == 'active') {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
if (storage.data.language && storage.data.language !== 'browser') {
|
||||
$translate.use(storage.data.language);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user