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 2013/02/07 20:49:45 UTC

git commit: refs/heads/multiple-Vlans - Fix remove button

Updated Branches:
  refs/heads/multiple-Vlans b1ee7105f -> 2bb1ba95e


Fix remove button


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

Branch: refs/heads/multiple-Vlans
Commit: 2bb1ba95e964697f9b93b12becbb038949b33b54
Parents: b1ee710
Author: Brian Federle <br...@citrix.com>
Authored: Thu Feb 7 11:45:29 2013 -0800
Committer: Brian Federle <br...@citrix.com>
Committed: Thu Feb 7 11:45:29 2013 -0800

----------------------------------------------------------------------
 ui/scripts/ui-custom/zoneWizard.js |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/2bb1ba95/ui/scripts/ui-custom/zoneWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/zoneWizard.js b/ui/scripts/ui-custom/zoneWizard.js
index 5d5b289..1250545 100644
--- a/ui/scripts/ui-custom/zoneWizard.js
+++ b/ui/scripts/ui-custom/zoneWizard.js
@@ -763,17 +763,14 @@
       //Multiple Vlan Ranges functionality
       $expand.click(function() {
 
-           var $vlanClone = $container.find('[rel=vlanRange]:first').clone().removeClass('field').insertBefore($container.find('.expand'));
-          //$vlan.appendTo($container.find('.content .select-container .physical-network-item form'));
-          $hide.clone().appendTo($vlanClone);
-       });
-
-         $hide.click(function() {
-         $hide.closest('[rel=vlanRange]').remove();           
-
-       });
-
+        var $vlanClone = $container.find('[rel=vlanRange]:first').clone().removeClass('field').insertBefore($container.find('.expand'));
+        //$vlan.appendTo($container.find('.content .select-container .physical-network-item form'));
+        var $remove = $hide.clone().appendTo($vlanClone);
 
+        $remove.click(function() {
+          $vlanClone.remove();
+        });
+      });
     },
 
     /**