You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!--
  2. Panes for "First Run" wizard. Logic in vboxWizard()
  3. Copyright (C) 2010-2015 Ian Moore (imoore76 at yahoo dot com)
  4. $Id: wizardFirstRun.html 595 2015-04-17 09:50:36Z imoore76 $
  5. -->
  6. <!-- Step 1 -->
  7. <div id='wizardFirstRunStep1' title='Select start-up disk' style='display: none'>
  8. <span class='translate' id='wizardFirstRunStepWHD'>&lt;p&gt;Please select a virtual optical disk file or a physical optical drive containing a disk to start your new virtual machine from.&lt;/p&gt;&lt;p&gt;The disk should be suitable for starting a computer from and should contain the operating system you wish to install on the virtual machine if you want to do that now. The disk will be ejected from the virtual drive automatically next time you switch the virtual machine off, but you can also do this yourself if needed using the Devices menu.&lt;/p&gt;</span>
  9. <span class='translate' id='wizardFirstRunStepNoHD'>&lt;p&gt;Please select a virtual optical disk file or a physical optical drive containing a disk to start your new virtual machine from.&lt;/p&gt;&lt;p&gt;The disk should be suitable for starting a computer from. As this virtual machine has no hard drive you will not be able to install an operating system on it at the moment.&lt;/p&gt;</span>
  10. <table class='vboxInvisible'>
  11. <tr style='vertical-align: middle'><td>
  12. <select id='wizardFirstRunMedia'>
  13. </select>
  14. </td>
  15. <td style='width:1%' id='wizardFirstRunChoose'></td></tr>
  16. </table>
  17. </div>
  18. <script type='text/javascript'>
  19. $('#wizardFirstRunStep1').on('show',function(e,wiz){
  20. var hdFound = false;
  21. for(var i = 0; i < wiz.args.storageControllers.length; i++) {
  22. for(var a = 0; a < wiz.args.storageControllers[i].mediumAttachments.length; a++) {
  23. if(wiz.args.storageControllers[i].mediumAttachments[a].type == "HardDisk" &&
  24. wiz.args.storageControllers[i].mediumAttachments[a].medium != null) {
  25. hdFound = true;
  26. break;
  27. }
  28. }
  29. }
  30. $('#wizardFirstRunStepWHD').css({'display':(hdFound ? '' : 'none')});
  31. $('#wizardFirstRunStepNoHD').css({'display':(hdFound ? 'none' : '')});
  32. function wizardFirstRunFillMedia(sel) {
  33. var cds = vboxMedia.mediaForAttachmentType('DVD');
  34. $('#wizardFirstRunMedia')[0].options = [];
  35. for(var i = 0; i < cds.length; i++) {
  36. $('#wizardFirstRunMedia')[0].options[i] = new Option(vboxMedia.getName(cds[i]), cds[i].id, (sel && sel == cds[i].id), (sel && sel == cds[i].id));
  37. }
  38. }
  39. wizardFirstRunFillMedia();
  40. var wizardFirstRunBar = new vboxToolbarSingle({button: {
  41. /* Add Attachment Button */
  42. 'name' : 'mselecthdbtnd',
  43. 'label' : 'Choose a virtual optical disk file...',
  44. 'language_context': 'UIWizardFirstRun',
  45. 'icon' : 'select_file',
  46. 'click' : function () {
  47. vboxMedia.actions.choose(null,'DVD',function(med){
  48. if(!med) return;
  49. wizardFirstRunFillMedia(med.id);
  50. });
  51. }
  52. }});
  53. wizardFirstRunBar.renderTo('wizardFirstRunChoose');
  54. $('#wizardFirstRunMedia').hide();
  55. var w = $('#wizardFirstRunMedia').parent().innerWidth();
  56. $('#wizardFirstRunMedia').css({'width':w+'px'}).show();
  57. });
  58. </script>