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/14 00:18:02 UTC
[3/6] git commit: refs/heads/ui-multiple-vlan-ranges - Fix remove
button
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 <br...@citrix.com>
Authored: Thu Feb 7 11:45:29 2013 -0800
Committer: Brian Federle <br...@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();
+ });
+ });
},
/**