mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 05:18:31 +00:00
FS-7800 [verto_communicator] - Added an option in user's hover buttons to open another canvas when canvasCount is higher than 1
This commit is contained in:
1 parent
99ca223f82
commit
d4d4165bac
9 files changed
+139
-14
No files matched your search
@@ -8,6 +8,24 @@
|
||||
|
||||
console.debug('Executing MainController.');
|
||||
|
||||
$rootScope.master = $location.search().master;
|
||||
if ($location.search().watcher === 'true') {
|
||||
$rootScope.watcher = true;
|
||||
angular.element(document.body).addClass('watcher');
|
||||
var dialpad;
|
||||
var extension = dialpad = $location.search().extension;
|
||||
var canvasID = $location.search().canvas_id;
|
||||
|
||||
if (dialpad) {
|
||||
if (canvasID) {
|
||||
dialpad += '-canvas-' + canvasID;
|
||||
}
|
||||
$rootScope.extension = extension;
|
||||
$rootScope.canvasID = canvasID;
|
||||
$location.search().autocall = dialpad;
|
||||
}
|
||||
}
|
||||
|
||||
var myVideo = document.getElementById("webcam");
|
||||
$scope.verto = verto;
|
||||
$scope.storage = storage;
|
||||
@@ -432,6 +450,11 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if ($rootScope.watcher) {
|
||||
window.close();
|
||||
return;
|
||||
}
|
||||
|
||||
//var hangupCallback = function(v, hangup) {
|
||||
// if (hangup) {
|
||||
// $location.path('/dialpad');
|
||||
|
||||
Reference in new issue
Block a user