|
556 | 556 | $step.find('.multi-disk-select-container').remove(); |
557 | 557 | $step.removeClass('custom-disk-size'); |
558 | 558 |
|
559 | | - if (args.required) { |
560 | | - $step.find('.section.no-thanks').hide(); |
561 | | - $step.addClass('required'); |
562 | | - } else { |
563 | | - $step.find('.section.no-thanks').show(); |
564 | | - $step.removeClass('required'); |
565 | | - } |
| 559 | + if (!multiDisk){ |
| 560 | + if (args.required) { |
| 561 | + $step.find('.section.no-thanks').hide(); |
| 562 | + $step.addClass('required'); |
| 563 | + } else { |
| 564 | + $step.find('.section.no-thanks').show(); |
| 565 | + $step.removeClass('required'); |
| 566 | + } |
| 567 | + } |
| 568 | + else { |
| 569 | + $step.find('.section.no-thanks').hide(); |
| 570 | + $step.addClass('required'); |
| 571 | + } |
566 | 572 |
|
567 | 573 | var $selectContainer = $step.find('.content .select-container:not(.multi-disk)'); |
568 | 574 |
|
|
592 | 598 |
|
593 | 599 | $group.appendTo($multiDiskSelect); |
594 | 600 | $group.data('json-obj', disk); |
| 601 | + if (disk.id == "none"){ |
| 602 | + return; |
| 603 | + } |
595 | 604 |
|
596 | 605 | // Show-hide disk group selects |
597 | 606 | $checkbox.click(function() { |
598 | 607 | $group.toggleClass('selected'); |
599 | 608 | $group.find('.select:first input[type=radio]').click(); |
600 | 609 |
|
601 | | - if (!$multiDiskSelect.find('input[type=checkbox]:checked').size()) { |
602 | | - $step.find('.no-thanks input[type=radio]').click(); |
603 | | - } else { |
604 | | - $step.find('.no-thanks input[type=radio]').attr('checked', false); |
605 | | - } |
| 610 | + if (!$multiDiskSelect.find('input[type=checkbox]:checked').size()) { |
| 611 | + $step.find('.no-thanks input[type=radio]').click(); |
| 612 | + } else { |
| 613 | + $step.find('.no-thanks input[type=radio]').attr('checked', false); |
| 614 | + } |
606 | 615 | }); |
607 | 616 |
|
608 | 617 | // Add custom disk size box |
|
0 commit comments