From 3a0afade23f5656cd62de3f7894eb0c5c5407c94 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 22 Feb 2012 14:53:49 -0800 Subject: [PATCH] zone wizard - declare item before using it. [reviewed-by: Brian] --- ui/scripts/zoneWizard.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/scripts/zoneWizard.js b/ui/scripts/zoneWizard.js index 5cbe76c2675..01259c2e417 100644 --- a/ui/scripts/zoneWizard.js +++ b/ui/scripts/zoneWizard.js @@ -161,6 +161,7 @@ }, addPrimaryStorage: function(args) { + var item; $.ajax({ url: createURL("listConfigurations&name=" + todb("use.local.storage")), dataType: 'json', @@ -178,7 +179,7 @@ } }); - if(item == null || item.value == null || item.value == "false" || item.value == false) + if(item == null || item.value == null || item.value.length == 0 || item.value == "false") configurationUseLocalStorage = false; else configurationUseLocalStorage = true;