mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-2981: UI - create network offering - fix a bug that provider dropdown always bounced back to the first enabled option. It should only bounce back to the first enabled option when the selected option is disabled.
This commit is contained in:
parent
3eeca55c76
commit
4b2eb18cfc
@ -1228,8 +1228,11 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
$providers.each(function() {
|
||||
$(this).val($(this).find('option:first'));
|
||||
$providers.each(function() {
|
||||
//if selected option is disabled, select the first enabled option instead
|
||||
if($(this).find('option:selected:disabled').length > 0) {
|
||||
$(this).val($(this).find('option:first'));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user