mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug 8440: Add Primary Storage dialog - when PreSetup is selected, change "Path:" to "SR Name-Label:". When NFS is selected, change "SR Name-Label:" back to "Path:".
This commit is contained in:
parent
ed197ae971
commit
6d7b4e3c7a
@ -18,6 +18,7 @@ label.by.account=By Account
|
||||
label.by.start.date=By Start Date
|
||||
label.by.end.date=By End Date
|
||||
message.no.network.support.configuration.not.true=direct.attach.security.groups.enabled is not set to true. Thus, no additional network features. Please continue to step 5.
|
||||
label.SR.name = SR Name-Label
|
||||
|
||||
#Labels
|
||||
label.account.id=Account ID
|
||||
|
||||
@ -85,7 +85,9 @@
|
||||
'label.by.zone': '<fmt:message key="label.by.zone"/>',
|
||||
'label.by.pod': '<fmt:message key="label.by.pod"/>',
|
||||
'label.by.domain': '<fmt:message key="label.by.domain"/>',
|
||||
'label.by.account': '<fmt:message key="label.by.account"/>'
|
||||
'label.by.account': '<fmt:message key="label.by.account"/>',
|
||||
'label.path': '<fmt:message key="label.path"/>',
|
||||
'label.SR.name': '<fmt:message key="label.SR.name"/>'
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@ -921,12 +921,21 @@ function iscsiURL(server, iqn, lun) {
|
||||
|
||||
function bindEventHandlerToDialogAddPool($dialogAddPool) {
|
||||
$dialogAddPool.find("#add_pool_protocol").change(function(event) {
|
||||
if($(this).val() == "nfs" || $(this).val() == "PreSetup") {
|
||||
if($(this).val() == "nfs") {
|
||||
$("#add_pool_server_container", $dialogAddPool).show();
|
||||
$('li[input_group="nfs"]', $dialogAddPool).show();
|
||||
$('li[input_group="iscsi"]', $dialogAddPool).hide();
|
||||
$('li[input_group="vmfs"]', $dialogAddPool).hide();
|
||||
$dialogAddPool.find("#add_pool_nfs_server").attr("disabled", false).val("");
|
||||
$dialogAddPool.find("#add_pool_path_container").find("label").text(g_dictionary["label.path"]+":");
|
||||
}
|
||||
if($(this).val() == "PreSetup") {
|
||||
$("#add_pool_server_container", $dialogAddPool).show();
|
||||
$('li[input_group="nfs"]', $dialogAddPool).show();
|
||||
$('li[input_group="iscsi"]', $dialogAddPool).hide();
|
||||
$('li[input_group="vmfs"]', $dialogAddPool).hide();
|
||||
$dialogAddPool.find("#add_pool_nfs_server").attr("disabled", false).val("");
|
||||
$dialogAddPool.find("#add_pool_path_container").find("label").text(g_dictionary["label.SR.name"]+":");
|
||||
}
|
||||
else if($(this).val() == "iscsi") {
|
||||
$("#add_pool_server_container", $dialogAddPool).show();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user