Commit 10eb2495 authored by Dietmar Maurer's avatar Dietmar Maurer

change default boot order to cdn

And disable Floppy option (till now we do not support floppies)
parent ca6273d7
...@@ -38,7 +38,7 @@ Ext.define('PVE.qemu.BootOrderPanel', { ...@@ -38,7 +38,7 @@ Ext.define('PVE.qemu.BootOrderPanel', {
me.vmconfig = vmconfig; me.vmconfig = vmconfig;
var order = me.vmconfig.boot || 'cad'; var order = me.vmconfig.boot || 'cdn';
me.bootdisk = me.vmconfig.bootdisk; me.bootdisk = me.vmconfig.bootdisk;
if (!me.vmconfig[me.bootdisk]) { if (!me.vmconfig[me.bootdisk]) {
me.bootdisk = undefined; me.bootdisk = undefined;
...@@ -73,9 +73,9 @@ Ext.define('PVE.qemu.BootOrderPanel', { ...@@ -73,9 +73,9 @@ Ext.define('PVE.qemu.BootOrderPanel', {
if (sel1 !== 'n' && (sel2 !== 'n')) { if (sel1 !== 'n' && (sel2 !== 'n')) {
list.push(['n', 'Network']); list.push(['n', 'Network']);
} }
if (sel1 !== 'a' && (sel2 !== 'a')) { //if (sel1 !== 'a' && (sel2 !== 'a')) {
list.push(['a', 'Floppy']); // list.push(['a', 'Floppy']);
} //}
if (includeNone) { if (includeNone) {
list.push(['', 'None']); list.push(['', 'None']);
......
...@@ -62,13 +62,13 @@ Ext.define('PVE.qemu.Options', { ...@@ -62,13 +62,13 @@ Ext.define('PVE.qemu.Options', {
}, },
boot: { boot: {
header: 'Boot order', header: 'Boot order',
defaultValue: 'cad', defaultValue: 'cdn',
editor: 'PVE.qemu.BootOrderEdit', editor: 'PVE.qemu.BootOrderEdit',
renderer: function(order) { renderer: function(order) {
var i; var i;
var text = ''; var text = '';
var bootdisk = me.getObjectValue('bootdisk'); var bootdisk = me.getObjectValue('bootdisk');
order = order || 'cad'; order = order || 'cdn';
for (i = 0; i < order.length; i++) { for (i = 0; i < order.length; i++) {
var sel = order.substring(i, i + 1); var sel = order.substring(i, i + 1);
if (text) { if (text) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment