incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject git commit: refs/heads/multiple-Vlans - Fix remove button
Date Thu, 07 Feb 2013 19:49:45 GMT
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 <brian.federle@citrix.com>
Authored: Thu Feb 7 11:45:29 2013 -0800
Committer: Brian Federle <brian.federle@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();
+        });
+      });
     },
 
     /**


Mime
View raw message