Return-Path: X-Original-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 46C8FE4C7 for ; Wed, 13 Feb 2013 23:18:03 +0000 (UTC) Received: (qmail 20055 invoked by uid 500); 13 Feb 2013 23:18:03 -0000 Delivered-To: apmail-incubator-cloudstack-commits-archive@incubator.apache.org Received: (qmail 20025 invoked by uid 500); 13 Feb 2013 23:18:03 -0000 Mailing-List: contact cloudstack-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-commits@incubator.apache.org Received: (qmail 20003 invoked by uid 99); 13 Feb 2013 23:18:03 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2013 23:18:03 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id D66BE3254AC; Wed, 13 Feb 2013 23:18:02 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bfederle@apache.org To: cloudstack-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [3/6] git commit: refs/heads/ui-multiple-vlan-ranges - Fix remove button Message-Id: <20130213231802.D66BE3254AC@tyr.zones.apache.org> Date: Wed, 13 Feb 2013 23:18:02 +0000 (UTC) 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 Authored: Thu Feb 7 11:45:29 2013 -0800 Committer: Brian Federle 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(); + }); + }); }, /**