diff --git a/ui/scripts/system.js b/ui/scripts/system.js index ae6924e0a89..92faf5e99ff 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -10263,7 +10263,7 @@ if(args.$form.find('.form-item[rel=isDedicated]').find('input[type=checkbox]').is(':Checked')== true){ if(args.data.accountId != "") array2.push("&account=" +todb(args.data.accountId)); - } + if(clusterId != null){ $.ajax({ @@ -10289,6 +10289,7 @@ } }); } + } }, error: function(XMLHttpResponse) { var errorMsg = parseXMLHttpResponse(XMLHttpResponse); @@ -11364,7 +11365,7 @@ if(args.$form.find('.form-item[rel=isDedicated]').find('input[type=checkbox]').is(':Checked')== true){ if(args.data.accountId != "") array2.push("&account=" +todb(args.data.accountId)); - } + if(hostId != null){ $.ajax({ @@ -11391,6 +11392,7 @@ } }); } + } }, error: function(XMLHttpResponse) {