]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8089 [verto_communicator] Opening members list when start conference
authorStefan Yohansson <stefan@evolux.net.br>
Tue, 22 Sep 2015 13:23:41 +0000 (10:23 -0300)
committerStefan Yohansson <stefan@evolux.net.br>
Tue, 22 Sep 2015 13:23:41 +0000 (10:23 -0300)
html5/verto/verto_communicator/src/vertoControllers/controllers/InCallController.js
html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js
html5/verto/verto_communicator/src/vertoService/services/vertoService.js

index c093be086fe7a402ab504e12c0784bd1430adad1..47eb987a28ab1ad4bd899425b0fd368cbfb3224b 100644 (file)
         if (storage.data.videoCall) {
           $scope.callTemplate = 'partials/video_call.html';
         }
+        
+        $rootScope.$on('call.conference', function(event, data) {
+          $timeout(function() {
+            if($scope.chatStatus) {
+              $scope.openChat();
+            }
+          });
+        });
 
         $rootScope.$on('call.video', function(event, data) {
           $timeout(function() {
@@ -78,4 +86,4 @@
 
       }
     ]);
-})();
\ No newline at end of file
+})();
index f7e3d5bb91791463e2f0566320bf5111eaaa7b65..bd2f2562c1f01f08989d905081afd6e1c52ce00b 100644 (file)
@@ -12,7 +12,7 @@
       $scope.verto = verto;
       $scope.storage = storage;
       $scope.call_history = angular.element("#call_history").hasClass('active');
-      $scope.chatStatus = angular.element('#wrapper').hasClass('toggled');
+      $rootScope.chatStatus = angular.element('#wrapper').hasClass('toggled');
 
       /**
        * (explanation) scope in another controller extends rootScope (singleton)
       };
 
       $scope.toggleChat = function() {
-        if ($scope.chatStatus && $rootScope.activePane === 'chat') {
+        if ($rootScope.chatStatus && $rootScope.activePane === 'chat') {
           $rootScope.chat_counter = 0;
         }
         angular.element('#wrapper').toggleClass('toggled');
-        $scope.chatStatus = angular.element('#wrapper').hasClass('toggled');
+        $rootScope.chatStatus = angular.element('#wrapper').hasClass('toggled');
       };
 
-      $scope.openChat = function() {
-        $scope.chatStatus = false;
+      $rootScope.openChat = function() {
+        $rootScope.chatStatus = false;
         angular.element('#wrapper').removeClass('toggled');
       };
 
       $scope.closeChat = function() {
-        $scope.chatStatus = true;
+        $rootScope.chatStatus = true;
         angular.element('#wrapper').addClass('toggled');
       };
 
           Fullscreen.cancel();
         }
 
-
-        console.log($scope.chatStatus);
-        if (!$scope.chatStatus) {
+        if (!$rootScope.chatStatus) {
           angular.element('#wrapper').toggleClass('toggled');
-          $scope.chatStatus = angular.element('#wrapper').hasClass('toggled');
+          $rootScope.chatStatus = angular.element('#wrapper').hasClass('toggled');
         }
 
         $rootScope.dialpadNumber = '';
index cb30f897a4bc743afdc88180c4e34f92a8723936..940ae1059d0d4d11aa0daab1957c5e2e90574fb5 100644 (file)
@@ -335,6 +335,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
 
         function startConference(v, dialog, pvtData) {
           $rootScope.$emit('call.video', 'video');
+          $rootScope.$emit('call.conference', 'conference');
           data.chattingWith = pvtData.chatID;
           data.confRole = pvtData.role;