mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK UI - remove obsolete code (window.name is no longer used).
This commit is contained in:
parent
e30ce5c9e8
commit
40678a27da
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue