From 3514d59f4533017d220bbb2be64caef105d5ada9 Mon Sep 17 00:00:00 2001 From: will Date: Wed, 10 Nov 2010 19:46:38 -0800 Subject: [PATCH] bug 7095: cluster name can no longer be null when adding into a new cluster pool status 7095: resolved fixed --- ui/scripts/cloud.core.pod.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/scripts/cloud.core.pod.js b/ui/scripts/cloud.core.pod.js index 3f44542b270..9dffab77710 100644 --- a/ui/scripts/cloud.core.pod.js +++ b/ui/scripts/cloud.core.pod.js @@ -175,7 +175,10 @@ function initAddHostButton($midmenuAddLink1, currentPageInRightPanel) { var isValid = true; isValid &= validateString("Host name", $thisDialog.find("#host_hostname"), $thisDialog.find("#host_hostname_errormsg")); isValid &= validateString("User name", $thisDialog.find("#host_username"), $thisDialog.find("#host_username_errormsg")); - isValid &= validateString("Password", $thisDialog.find("#host_password"), $thisDialog.find("#host_password_errormsg")); + isValid &= validateString("Password", $thisDialog.find("#host_password"), $thisDialog.find("#host_password_errormsg")); + if(clusterRadio == "new_cluster_radio") { + isValid &= validateString("Cluster Name", $thisDialog.find("#new_cluster_name"), $thisDialog.find("#new_cluster_name_errormsg")); + } if (!isValid) return;