CLOUDSTACK-2120: mixed zone management - UI: make global function changeURL() to pass zonetype to API calls based on selected option in zone type dropdown on top menu.

This commit is contained in:
Jessica Wang 2013-04-26 11:26:21 -07:00
parent 7cf312a770
commit 3e2eb59723
1 changed files with 4 additions and 0 deletions

View File

@ -114,6 +114,10 @@ function createURL(apiName, options) {
if (cloudStack.context && cloudStack.context.projects && !options.ignoreProject) {
urlString = urlString + '&projectid=' + cloudStack.context.projects[0].id;
}
if(cloudStack.context != null && cloudStack.context.zoneType != null && cloudStack.context.zoneType.length > 0) { //Basic type or Advanced type
urlString = urlString + '&zonetype=' + cloudStack.context.zoneType;
}
return urlString;
}