mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix instance wizard: service offering step
-Fix default radio button not always being selected, causing validation errors on creation
This commit is contained in:
parent
9f49967365
commit
22c1da1372
@ -230,9 +230,13 @@
|
||||
|
||||
'service-offering': function($step, formData) {
|
||||
var originalValues = function(formData) {
|
||||
$step.find('input[type=radio]').filter(function() {
|
||||
return $(this).val() == formData.serviceofferingid;
|
||||
}).click();
|
||||
if (formData.serviceofferingid) {
|
||||
$step.find('input[type=radio]').filter(function() {
|
||||
return $(this).val() == formData.serviceofferingid;
|
||||
}).click();
|
||||
} else {
|
||||
$step.find('input[type=radio]:first').click();
|
||||
}
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user