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 01:09:31 UTC

git commit: refs/heads/ui-multiple-vlan-ranges - WIP: Refactor multiple vlan ranges

Updated Branches:
  refs/heads/ui-multiple-vlan-ranges 77fb6c1c6 -> b7de5358d


WIP: Refactor multiple vlan ranges

-WIP to support/fix mulitple guest network tabs


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/b7de5358
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/b7de5358
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/b7de5358

Branch: refs/heads/ui-multiple-vlan-ranges
Commit: b7de5358dce2c200a3be0f1a1a8190c0938c87ff
Parents: 77fb6c1
Author: Brian Federle <br...@citrix.com>
Authored: Wed Feb 13 16:09:27 2013 -0800
Committer: Brian Federle <br...@citrix.com>
Committed: Wed Feb 13 16:09:27 2013 -0800

----------------------------------------------------------------------
 ui/scripts/ui-custom/zoneWizard.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b7de5358/ui/scripts/ui-custom/zoneWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/zoneWizard.js b/ui/scripts/ui-custom/zoneWizard.js
index 2c80456..bd26ee2 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('');