cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessicaw...@apache.org
Subject git commit: updated refs/heads/4.2 to c6961ef
Date Mon, 08 Jul 2013 18:57:52 GMT
Updated Branches:
  refs/heads/4.2 00ae00ae3 -> c6961ef65


CLOUDSTACK-3286: UI - Add Network Offering dialog - reset provider dropdown to first enabled
option only if selected option is diabled.


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

Branch: refs/heads/4.2
Commit: c6961ef6559b98675981170e9bd94b89e2180613
Parents: 00ae00a
Author: Jessica Wang <jessicawang@apache.org>
Authored: Mon Jul 1 15:23:02 2013 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Mon Jul 8 11:57:39 2013 -0700

----------------------------------------------------------------------
 ui/scripts/configuration.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c6961ef6/ui/scripts/configuration.js
----------------------------------------------------------------------
diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js
index ab70c3d..aa8fafd 100644
--- a/ui/scripts/configuration.js
+++ b/ui/scripts/configuration.js
@@ -1577,7 +1577,10 @@
                         }                             
                       }     
                       
-                      $lbProvider.val($lbProvider.find('option:first'));     
+                      //if selected option is disabled, select the first enabled option instead
+                      if($lbProvider.find('option:selected:disabled').length > 0) { 
+                        $lbProvider.val($lbProvider.find('option:first'));              
          
+                      }     
                     }
                     else {
                       $lbType.hide();                      


Mime
View raw message