* VRFS-3719 - dont show update dialog more than one at a time

This commit is contained in:
Seth Call 2015-11-17 05:28:02 -06:00
parent 38a64a3dde
commit cd6bf55a1a
1 changed files with 10 additions and 2 deletions

View File

@ -61,7 +61,10 @@
})
}
app.layout.showDialog('client-update')
if(!app.layout.isDialogShowing('client-update')) {
app.layout.showDialog('client-update')
}
//$('#client_update').show()
//$('#client_update_overlay').show()
}
@ -192,6 +195,11 @@
function runCheck(product, version, uri, size, currentVersion) {
if (app.clientUpdating) {
logger.debug("client is already updating; skipping")
return
}
if(currentVersion === undefined) {
currentVersion = context.jamClient.ClientUpdateVersion();
@ -302,7 +310,7 @@
$(document).on(EVENTS.SESSION_ENDED, function(e, data){
if(app.clientUpdating) {
updateClientUpdateDialog("update-start", { uri: updateUri })
updateClientUpdateDialog("update-start", { uri: updateUri})
}
});