From d6e74f8890f1450f526f7e3d2009576c85950d4a Mon Sep 17 00:00:00 2001 From: phamt Date: Mon, 20 Dec 2010 15:17:15 +0000 Subject: [PATCH] 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 --- xCAT-UI/js/custom/zvmUtils.js | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/xCAT-UI/js/custom/zvmUtils.js b/xCAT-UI/js/custom/zvmUtils.js index 29138db58..08827d67d 100644 --- a/xCAT-UI/js/custom/zvmUtils.js +++ b/xCAT-UI/js/custom/zvmUtils.js @@ -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);