From: Italo Rossi Date: Thu, 24 Mar 2016 20:11:17 +0000 (-0300) Subject: FS-8765 - [verto_communicator] Making preview button work again X-Git-Tag: v1.6.7^2~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad72c7f56c8f29c3225922473b3c56cbe9484dd3;p=thirdparty%2Ffreeswitch.git FS-8765 - [verto_communicator] Making preview button work again --- diff --git a/html5/verto/verto_communicator/src/vertoControllers/controllers/SettingsController.js b/html5/verto/verto_communicator/src/vertoControllers/controllers/SettingsController.js index a9adcd630f..784a2e6dd9 100644 --- a/html5/verto/verto_communicator/src/vertoControllers/controllers/SettingsController.js +++ b/html5/verto/verto_communicator/src/vertoControllers/controllers/SettingsController.js @@ -40,14 +40,15 @@ }; $scope.showPreview = function() { - $modalInstance.close('Ok.'); - if (!verto.data.call) { - $location.path('/preview'); - return; - } - else { - toastr.warning('Can\'t display preview settings during a call'); - } + var settingsEl = angular.element(document.querySelector('#settings')); + settingsEl.toggleClass('toggled'); + if (!verto.data.call) { + $location.path('/preview'); + return; + } + else { + toastr.warning('Can\'t display preview settings during a call'); + } }; $scope.testSpeed = function() {