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:
Italo Rossi 2016-09-29 07:20:40 -05:00
commit 1584709980
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 {