Merge pull request #984 in FS/freeswitch from ~WALDYR/freeswitch:FS-8076-Ask-before-closing-page-if-call-in-progress to master
* commit 'ecf5a0ce5c1e714fb46d14bc01de3e418034254d': FS-8076 [verto_communicator] Ask before closing the page if a call is in progress.
This commit is contained in:
commit
1584709980
|
@ -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