You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2013/07/02 00:24:20 UTC

git commit: updated refs/heads/master to 2c1c804

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 <je...@apache.org>
Authored: Mon Jul 1 15:23:02 2013 -0700
Committer: Jessica Wang <je...@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();