If either (or both) combo boxes is null or undefined, return
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/85e90ca9 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/85e90ca9 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/85e90ca9 Branch: refs/heads/sf-plugins Commit: 85e90ca9ee8d583dafe4a656eaed42016d116ec4 Parents: 620af9c Author: Mike Tutkowski <[email protected]> Authored: Wed Jul 8 20:25:47 2015 -0600 Committer: Mike Tutkowski <[email protected]> Committed: Fri Sep 18 19:28:19 2015 -0600 ---------------------------------------------------------------------- ui/plugins/sfSharedVolume/sfSharedVolume.js | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/85e90ca9/ui/plugins/sfSharedVolume/sfSharedVolume.js ---------------------------------------------------------------------- diff --git a/ui/plugins/sfSharedVolume/sfSharedVolume.js b/ui/plugins/sfSharedVolume/sfSharedVolume.js index 2d904cd..5835edd 100644 --- a/ui/plugins/sfSharedVolume/sfSharedVolume.js +++ b/ui/plugins/sfSharedVolume/sfSharedVolume.js @@ -157,6 +157,10 @@ }, dependsOn: ['availabilityZone', 'account'], select: function(args) { + if (args.data.availabilityZone == null || args.data.account == null) { + return; + } + var params = []; params.push("&zoneid=" + args.data.availabilityZone);
