]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8178 - [verto_communicator] Define first share device selected by default in setti...
authorStefan Yohansson <stefan@evolux.net.br>
Thu, 17 Sep 2015 11:12:23 +0000 (08:12 -0300)
committerStefan Yohansson <stefan@evolux.net.br>
Thu, 17 Sep 2015 11:40:33 +0000 (08:40 -0300)
html5/verto/verto_communicator/src/vertoService/services/vertoService.js

index 25c9465547b6b9ffd0370f2041f78b34a4555165..c8d52fbc8615e08644abdbe3d1474d6b6fb9f4f2 100644 (file)
@@ -206,6 +206,10 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
         }];
         data.audioDevices = [];
 
+        if(!storage.data.selectedShare) {
+          storage.data.selectedShare = data.shareDevices[0]['id'];
+        }
+
         for (var i in jQuery.verto.videoDevices) {
           var device = jQuery.verto.videoDevices[i];
           if (!device.label) {
@@ -505,7 +509,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
                   cleanShareCall(that);
                 } else {
                   if (data.conf) {
-                    data.liveArray.destroy();  
+                    data.liveArray.destroy();
                     data.conf.destroy();
                   }
                   cleanCall();