From b97c6a6ed2fc04b4dcfa66a5438de707408b515d Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 6 Jan 2011 10:55:40 -0800 Subject: [PATCH] bug 7654 - resource page - add primary storage - skip calling listPods when zone field is empty. --- ui/scripts/cloud.core.resource.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/scripts/cloud.core.resource.js b/ui/scripts/cloud.core.resource.js index ec1591c94f2..b3bde703c7f 100644 --- a/ui/scripts/cloud.core.resource.js +++ b/ui/scripts/cloud.core.resource.js @@ -1542,6 +1542,8 @@ function initAddPrimaryStorageShortcut($midmenuAddLink2, currentPageInRightPanel $dialogAddPool.find("#zone_dropdown").bind("change", function(event) { var zoneId = $(this).val(); + if(zoneId == null) + return; $.ajax({ data: createURL("command=listPods&zoneId="+zoneId), dataType: "json",