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 to 2c1c804
Date Mon, 01 Jul 2013 22:24:20 GMT
Updated Branches:
  refs/heads/master 2fc6054a9 -> 2c1c8045b


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

Branch: refs/heads/master
Commit: 2c1c8045bb51c82385af2f91ccf83a379dd5a8e6
Parents: 2fc6054
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:24:11 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2c1c8045/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