From f0ee2b03681f192c4779e934108eabf771b65c3c Mon Sep 17 00:00:00 2001 From: Ivan Devat Date: Tue, 19 Mar 2019 10:48:10 +0100 Subject: [PATCH] squash bz1690304 GUI submitting of create cluster add quotes around html attribute value It fixes issue with node names containg dots. JQuery parsing failed when quotes were not around html attribute value in the case of value containing dots. fix omitting link/quorum opts: webui cluster setup --- pcsd/public/js/cluster-setup.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcsd/public/js/cluster-setup.js b/pcsd/public/js/cluster-setup.js index be0a22d5..fc927507 100644 --- a/pcsd/public/js/cluster-setup.js +++ b/pcsd/public/js/cluster-setup.js @@ -82,7 +82,7 @@ clusterSetup.link.detail.refreshNodesNames = function(linkDetail, nodesNames){ var newAddresses = nodesNames.map(function(nodeName){ return previousNodesNames.contains(nodeName) - ? linkDetail.find("[data-transport-addr-host="+nodeName+"]") + ? linkDetail.find("[data-transport-addr-host='"+nodeName+"']") : clusterSetup.link.detail.createAddress(nodeName) ; }); @@ -391,6 +391,7 @@ clusterSetup.data.settings = function(clusterName, nodesNames){ ) { return value == "on" ? "1" : "0"; } + return value; }, ), }, @@ -450,6 +451,7 @@ clusterSetup.data.settings = function(clusterName, nodesNames){ if (name === "broadcast"){ return value == "yes" ? "1" : "0"; } + return value; }, ); }) -- 2.20.1