bug 14610: cloudstack 3.0 - single sign on - log out - not reload original location if onLogoutCallback() returns false because new location has been specified in onLogoutCallback().

This commit is contained in:
Jessica Wang 2012-04-27 14:58:54 -07:00
parent ae0c3e0d26
commit 31997fa89d
1 changed files with 7 additions and 4 deletions

View File

@ -316,12 +316,15 @@
$.cookie('timezoneoffset', null);
$.cookie('timezone', null);
$.cookie('supportELB', null);
onLogoutCallback(); //set g_loginResponse(single-sign-on variable) to null, then bypassLoginCheck() will show login screen.
document.location.reload();
if(onLogoutCallback()) { //set g_loginResponse(single-sign-on variable) to null, then bypassLoginCheck() will show login screen.
document.location.reload();
}
},
error: function() {
onLogoutCallback(); //set g_loginResponse(single-sign-on variable) to null, then bypassLoginCheck() will show login screen.
if(onLogoutCallback()) { //set g_loginResponse(single-sign-on variable) to null, then bypassLoginCheck() will show login screen.
document.location.reload();
}
document.location.reload();
},
beforeSend : function(XMLHttpResponse) {