Skip to content

Commit 2c1c804

Browse files
author
Jessica Wang
committed
CLOUDSTACK-3286: UI - Add Network Offering dialog - reset provider dropdown to first enabled option only if selected option is diabled.
1 parent 2fc6054 commit 2c1c804

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎ui/scripts/configuration.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,10 @@
15771577
}
15781578
}
15791579

1580-
$lbProvider.val($lbProvider.find('option:first'));
1580+
//if selected option is disabled, select the first enabled option instead
1581+
if($lbProvider.find('option:selected:disabled').length > 0) {
1582+
$lbProvider.val($lbProvider.find('option:first'));
1583+
}
15811584
}
15821585
else {
15831586
$lbType.hide();

0 commit comments

Comments
 (0)