* VRFS-1680 - working mostly... but the backgrounding isn't yet working when selected

This commit is contained in:
Seth Call 2014-07-02 15:43:38 -05:00
parent 13b1bffa70
commit bd910abee9
2 changed files with 9 additions and 3 deletions

View File

@ -57,6 +57,8 @@
}
}
logger.debug("opening banner:" + options.title);
var $h1 = $banner.find('h1');
$h1.html(options.title);

View File

@ -12,17 +12,21 @@
{ title: "Close JamKazam Application",
buttons: [
{name: 'Completely Shut Down the App', click: function() {context.jamClient.ShutdownApplication()}},
{name: 'Let App Run in Background', click: function() {context.jamClient.ShutdownApplication()}}
{name: 'Let App Run in Background', click: function() {
context.jamClient.RegisterQuitCallback("window.JK.ShutdownDialogCallback");
context.JK.Banner.hide();
}
}
],
html: $('#template-shutdown-prompt').html()});
}
function initialize() {
//context.jamClient.RegisterQuitCallback("window.JK.ShutdownDialogCallback");
context.jamClient.RegisterQuitCallback("window.JK.ShutdownDialogCallback");
}
function quitCallback(options) {
logger.debug("oh hai");
logger.debug("shutdown event");
show();
}