You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2012/08/21 00:03:47 UTC

git commit: CS-16085: Fix networks checkboxes

Updated Branches:
  refs/heads/master 5c924feba -> 7d934d103


CS-16085: Fix networks checkboxes

When both VPC and isolated networks are present, fix case where
unchecking first isolated networks triggers checkbox for VPC tier
network, thus making it appear as if no network is selected.

reviewed-by: jessica


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/7d934d10
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/7d934d10
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/7d934d10

Branch: refs/heads/master
Commit: 7d934d1039349abbf30d0eea4fba06fc12fe53f4
Parents: 5c924fe
Author: Brian Federle <br...@citrix.com>
Authored: Mon Aug 20 14:57:08 2012 -0700
Committer: Brian Federle <br...@citrix.com>
Committed: Mon Aug 20 15:00:44 2012 -0700

----------------------------------------------------------------------
 ui/scripts/ui-custom/instanceWizard.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/7d934d10/ui/scripts/ui-custom/instanceWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/instanceWizard.js b/ui/scripts/ui-custom/instanceWizard.js
index a06d5a0..fe5ee3d 100644
--- a/ui/scripts/ui-custom/instanceWizard.js
+++ b/ui/scripts/ui-custom/instanceWizard.js
@@ -109,7 +109,8 @@
                         var $radio = $(this).closest('.select').find('input[type=radio]');
 
                         if ($(this).attr('type') == 'checkbox') {
-                          if ($(this).closest('.select-container').hasClass('single-select')) {
+                          if ($(this).closest('.select-container').hasClass('single-select') ||
+                              !$(this).closest('.select').siblings().filter(':visible').size()) {
                             $(this).closest('.select').siblings().find('input[type=checkbox]')
                               .attr('checked', false);
                             $(this).closest('.select').find('input[type=radio]').click();