CLOUDSTACK UI - remove obsolete code (window.name is no longer used).

This commit is contained in:
Jessica Wang 2013-07-09 15:25:40 -07:00
parent e30ce5c9e8
commit 40678a27da
3 changed files with 4 additions and 25 deletions

View File

@ -72,25 +72,7 @@ $(document).ready(function() {
return true;
}
});
}
else if(window.name != null && window.name.indexOf("&domain=") != -1) { //from region switching
g_loginCmdText = window.name;
$.ajax({
url: clientApiUrl + "?command=login" + window.name + "&response=json",
dataType: "json",
async: false,
success: function(json) {
g_loginResponse = json.loginresponse;
},
error: function() {
onLogoutCallback();
// This means the login failed. You should redirect to your login page.
},
beforeSend: function(XMLHttpRequest) {
return true;
}
});
}
}
});

View File

@ -399,8 +399,7 @@
g_timezone = null;
g_supportELB = null;
g_loginCmdText = null;
window.name = '';
$.cookie('JSESSIONID', null);
$.cookie('sessionKey', null);
$.cookie('username', null);
@ -476,8 +475,7 @@
}
};
if ($.urlParam('loginUrl') != 0
||(window.name != null && window.name.indexOf("&domain=") != -1)) {
if ($.urlParam('loginUrl') != 0) {
// SSO
loginArgs.hideLoginScreen = true;
}

View File

@ -88,8 +88,7 @@
var switchRegion = function(url) {
closeRegionSelector({
complete: function() {
$('#container').prepend($('<div>').addClass('loading-overlay'));
//window.name = g_loginCmdText;
$('#container').prepend($('<div>').addClass('loading-overlay'));
document.location.href = url;
}
});