From: Stefan Yohansson Date: Thu, 17 Sep 2015 11:12:23 +0000 (-0300) Subject: FS-8178 - [verto_communicator] Define first share device selected by default in setti... X-Git-Tag: v1.6.2~1^2~58^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da0b7c615285abff7f00e054c187ec03c3ce77ce;p=thirdparty%2Ffreeswitch.git FS-8178 - [verto_communicator] Define first share device selected by default in settings modal --- diff --git a/html5/verto/verto_communicator/src/vertoService/services/vertoService.js b/html5/verto/verto_communicator/src/vertoService/services/vertoService.js index 25c9465547..c8d52fbc86 100644 --- a/html5/verto/verto_communicator/src/vertoService/services/vertoService.js +++ b/html5/verto/verto_communicator/src/vertoService/services/vertoService.js @@ -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();