* VRFS-1680 - incorporate LeaveSessionAndMinimize bridge call on 'background' selection
This commit is contained in:
parent
af901f9241
commit
de1ca28623
|
|
@ -57,6 +57,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
hide();
|
||||
|
||||
logger.debug("opening banner:" + options.title);
|
||||
|
||||
var $h1 = $banner.find('h1');
|
||||
|
|
@ -74,6 +76,7 @@
|
|||
}
|
||||
|
||||
|
||||
|
||||
if((options.type == "alert" && !options.buttons) || options.close) {
|
||||
|
||||
var closeButtonText = 'CLOSE';
|
||||
|
|
|
|||
|
|
@ -774,9 +774,8 @@
|
|||
logger.debug("SessionLiveBroadcastStop requested");
|
||||
}
|
||||
|
||||
function RegisterQuitCallback() {
|
||||
|
||||
}
|
||||
function RegisterQuitCallback() { }
|
||||
function LeaveSessionAndMinimize() {}
|
||||
|
||||
// Javascript Bridge seems to camel-case
|
||||
// Set the instance functions:
|
||||
|
|
@ -809,6 +808,7 @@
|
|||
this.SetNetworkTestScore = SetNetworkTestScore;
|
||||
this.GetNetworkTestScore = GetNetworkTestScore;
|
||||
this.RegisterQuitCallback = RegisterQuitCallback;
|
||||
this.LeaveSessionAndMinimize = LeaveSessionAndMinimize;
|
||||
this.connected = true;
|
||||
|
||||
// FTUE (round 3)
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
{name: 'Completely Shut Down the App', click: function() {context.jamClient.ShutdownApplication()}},
|
||||
{name: 'Let App Run in Background', click: function() {
|
||||
context.jamClient.RegisterQuitCallback("window.JK.ShutdownDialogCallback");
|
||||
context.jamClient.LeaveSessionAndMinimize();
|
||||
context.JK.Banner.hide();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue