bug 7654 - resource page - add primary storage - skip calling listPods when zone field is empty.

This commit is contained in:
Jessica Wang 2011-01-06 10:55:40 -08:00
parent 30f6f1088c
commit b97c6a6ed2

View File

@ -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",