Checked for disk pool cookies before making ajax call in zVM provision page.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8484 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2010-12-20 15:17:15 +00:00
parent 1cd9a91438
commit d6e74f8890

View File

@ -2242,20 +2242,21 @@ function createZProvisionNew(inst) {
hcpInput.blur(function() {
if ($(this).val()) {
var args = $(this).val().split('.');
// Get disk pools
$.ajax( {
url : 'lib/cmd.php',
dataType : 'json',
data : {
cmd : 'lsvm',
tgt : args[0],
args : '--diskpoolnames',
msg : args[0]
},
success : setDiskPoolCookies
});
if (!$.cookie(args[0] + 'diskpools')) {
// Get disk pools
$.ajax( {
url : 'lib/cmd.php',
dataType : 'json',
data : {
cmd : 'lsvm',
tgt : args[0],
args : '--diskpoolnames',
msg : args[0]
},
success : setDiskPoolCookies
});
}
}
});
hcpDiv.append(hcpLabel);