* VRFS-3361 - make sure we leave the session in all cases that you leave the session screen

This commit is contained in:
Seth Call 2015-07-22 09:55:28 -05:00
parent a4b3ff4b03
commit e143dc4e1f
2 changed files with 4 additions and 1 deletions

View File

@ -58,7 +58,8 @@ SessionActions = @SessionActions
leaveSessionWarningDialog = new context.JK.LeaveSessionWarningDialog(context.JK.app,
() =>
@allowLeave = true
context.location.hash = data.hash
SessionActions.leaveSession(hash: data.hash)
#context.location.hash = data.hash
)
leaveSessionWarningDialog.initialize()

View File

@ -958,6 +958,8 @@ NotificationActions = @NotificationActions
window.history.go(behavior.location)
else
window.location = behavior.location
else if behavior.hash
window.location.hash = behavior.hash
else
logger.warn("no location specified in leaveSession action", behavior)
window.location = '/client#/home'