From b7de5358dce2c200a3be0f1a1a8190c0938c87ff Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Wed, 13 Feb 2013 16:09:27 -0800 Subject: [PATCH] WIP: Refactor multiple vlan ranges -WIP to support/fix mulitple guest network tabs --- ui/scripts/ui-custom/zoneWizard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/scripts/ui-custom/zoneWizard.js b/ui/scripts/ui-custom/zoneWizard.js index 2c80456f06a..bd26ee29aed 100644 --- a/ui/scripts/ui-custom/zoneWizard.js +++ b/ui/scripts/ui-custom/zoneWizard.js @@ -768,6 +768,8 @@ // Multiple Vlan Ranges functionality // var addVlan = function(options) { + var $tab = $tabs.filter('div.physical-network-item:visible'); + var evenOdd = function() { cloudStack.evenOdd($container, '.field[rel=vlanRange]:visible', { even: function($elem) { $elem.removeClass('odd'); $elem.addClass('even'); }, @@ -775,7 +777,7 @@ }); }; - var $vlanClone = $vlanRangeFirst.clone(); + var $vlanClone = $tab.find('.field[rel=vlanRange]:first').clone(); var $remove = $hide.clone(); $vlanClone.find('input').val('');