* VRFS-1680 - incorporate LeaveSessionAndMinimize bridge call on 'background' selection

This commit is contained in:
Seth Call 2014-07-03 16:24:24 -05:00
parent af901f9241
commit de1ca28623
3 changed files with 7 additions and 3 deletions

View File

@ -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';

View File

@ -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)

View File

@ -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();
}
}