cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [3/6] git commit: refs/heads/ui-multiple-vlan-ranges - Fix remove button
Date Wed, 13 Feb 2013 23:18:02 GMT
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/e99c907f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/e99c907f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/e99c907f

Branch: refs/heads/ui-multiple-vlan-ranges
Commit: e99c907fab011fb869129601f8968f577ce0d8f2
Parents: 76054a6
Author: Brian Federle <brian.federle@citrix.com>
Authored: Thu Feb 7 11:45:29 2013 -0800
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Wed Feb 13 15:15:50 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/e99c907f/ui/scripts/ui-custom/zoneWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/zoneWizard.js b/ui/scripts/ui-custom/zoneWizard.js
index 1141ed1..6eb04da 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