incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject git commit: refs/heads/ui-multiple-nics - Fix VM select IP drop-down for PF/LB UI
Date Thu, 07 Mar 2013 23:07:27 GMT
Updated Branches:
  refs/heads/ui-multiple-nics e046364cc -> a48bf0969


Fix VM select IP drop-down for PF/LB UI


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

Branch: refs/heads/ui-multiple-nics
Commit: a48bf0969e4af6c387e74eda67a95615b7490ef2
Parents: e046364
Author: Brian Federle <brian.federle@citrix.com>
Authored: Thu Mar 7 15:06:54 2013 -0800
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Thu Mar 7 15:06:54 2013 -0800

----------------------------------------------------------------------
 ui/scripts/ui/widgets/multiEdit.js |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/a48bf096/ui/scripts/ui/widgets/multiEdit.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/multiEdit.js b/ui/scripts/ui/widgets/multiEdit.js
index 7bce128..ecd3c8f 100755
--- a/ui/scripts/ui/widgets/multiEdit.js
+++ b/ui/scripts/ui/widgets/multiEdit.js
@@ -474,7 +474,7 @@
           var $tr = data.$tr;
           var $td = $tr.find('td.first');
           var $select = $('<div></div>').addClass('subselect').append(
-            $('<select></select>')
+            $('<select>')
           ).hide();
           var $selectionArea = $tr.find('td:last').find('input');
 
@@ -500,14 +500,17 @@
                         $option.append(item.description);
                         $option.appendTo($select.find('select'));
                       });
-
+                      $select.show();
                     } else {
                       $select.hide();
                     }
                   }
                 }
               });
-              $select.show();
+
+              if ($(this).is('input[type=radio]')) {
+                $(this).closest('tr').siblings().find('input[type=radio]').change();
+              } 
             } else {
               $select.find('option').remove();
               $select.hide();


Mime
View raw message