bug 9185: Fixed issues with having a "." in zonename when attempting to list templates and isos in the UI.

This commit is contained in:
will 2011-03-28 18:27:35 -07:00
parent a959726f38
commit 9e4e3f46bb
2 changed files with 2 additions and 2 deletions

View File

@ -291,7 +291,7 @@ function initCreateVmFromIsoDialog() {
}
function isoGetMidmenuId(jsonObj) {
return "midmenuItem_" + jsonObj.id + "_" + fromdb(jsonObj.zonename).replace(/\s/g, ""); //remove all spaces in zonename
return "midmenuItem_" + jsonObj.id + "_z" + jsonObj.zoneid; //remove all spaces in zonename
}
function isoToMidmenu(jsonObj, $midmenuItem1) {

View File

@ -300,7 +300,7 @@ function afterLoadTemplateJSP() {
}
function templateGetMidmenuId(jsonObj) {
return "midmenuItem_" + jsonObj.id + "_" + fromdb(jsonObj.zonename).replace(/\s/g, ""); //remove all spaces in zonename
return "midmenuItem_" + jsonObj.id + "_z" +jsonObj.zoneid;
}
function templateToMidmenu(jsonObj, $midmenuItem1) {