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/master-6-17-stable to 1f34d34
Date Mon, 01 Jul 2013 22:25:20 GMT
Updated Branches:
  refs/heads/master-6-17-stable e81c2c539 -> 1f34d345b


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/1f34d345
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/1f34d345
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/1f34d345

Branch: refs/heads/master-6-17-stable
Commit: 1f34d345b3ef21073436750d03e62fca94157ff6
Parents: e81c2c5
Author: Jessica Wang <jessicawang@apache.org>
Authored: Mon Jul 1 15:23:02 2013 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Mon Jul 1 15:25:06 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1f34d345/ui/scripts/configuration.js
----------------------------------------------------------------------
diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js
index cadde8c..40a1a48 100644
--- a/ui/scripts/configuration.js
+++ b/ui/scripts/configuration.js
@@ -1292,7 +1292,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