FS-8076 [verto_communicator] Ask before closing the page if a call is in progress.

This commit is contained in:
Waldyr de Souza 2016-09-28 15:19:22 -03:00
parent d314873b2a
commit ecf5a0ce5c
2 changed files with 9 additions and 0 deletions

View File

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

View File

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