FS-9607 [verto_communicator] Do not send DTMF when typing in the transfer box

This commit is contained in:
Italo Rossi 2016-10-04 18:08:32 -03:00
parent 1870d148ed
commit 8fa08df699
1 changed files with 5 additions and 0 deletions

View File

@ -320,6 +320,7 @@
$scope.confTransfer = function(memberID) { $scope.confTransfer = function(memberID) {
console.log('$scope.confTransfer'); console.log('$scope.confTransfer');
$rootScope.disableOnKeydownDtmf();
prompt({ prompt({
title: $translate.instant('TITLE_TRANSFER'), title: $translate.instant('TITLE_TRANSFER'),
message: $translate.instant('MESSAGE_TRANSFER'), message: $translate.instant('MESSAGE_TRANSFER'),
@ -327,10 +328,14 @@
label: $translate.instant('LABEL_TRANSFER'), label: $translate.instant('LABEL_TRANSFER'),
value: '', value: '',
}).then(function(exten) { }).then(function(exten) {
$rootScope.enableOnKeydownDtmf();
if (exten) { if (exten) {
verto.data.conf.transfer(memberID, exten); verto.data.conf.transfer(memberID, exten);
} }
}).catch(function(){
$rootScope.enableOnKeydownDtmf();
}); });
}; };
$scope.confToggleDeaf = function(member) { $scope.confToggleDeaf = function(member) {