mirror of
https://github.com/apache/cloudstack
synced 2026-09-02 09:31:53 +00:00
bug 9185: Fixed issues with having a "." in zonename when attempting to list templates and isos in the UI.
This commit is contained in:
parent
a959726f38
commit
9e4e3f46bb
@ -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) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user