[pve-devel] [PATCH] fix bug #181: Boot order: twice CDROM gives wrong output V2
Alexandre Derumier
aderumier at odiso.com
Tue Jan 22 12:33:48 CET 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
www/manager/qemu/BootOrderEdit.js | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/www/manager/qemu/BootOrderEdit.js b/www/manager/qemu/BootOrderEdit.js
index a42f330..ea29195 100644
--- a/www/manager/qemu/BootOrderEdit.js
+++ b/www/manager/qemu/BootOrderEdit.js
@@ -88,14 +88,23 @@ Ext.define('PVE.qemu.BootOrderPanel', {
var me = this;
var list = me.genList(true, me.curSel1, me.curSel2);
me.kv3.store.loadData(list);
- me.kv3.setValue((me.curSel3 === 'c') ? me.bootdisk : me.curSel3);
+ if(me.curSel3 === me.curSel1 || me.curSel3 === me.curSel2){
+ me.kv3.setValue('');
+ }else{
+ me.kv3.setValue((me.curSel3 === 'c') ? me.bootdisk : me.curSel3);
+ }
},
compute_sel2: function() {
var me = this;
var list = me.genList(true, me.curSel1);
me.kv2.store.loadData(list);
- me.kv2.setValue((me.curSel2 === 'c') ? me.bootdisk : me.curSel2);
+ if(me.curSel2 === me.curSel1 || me.curSel2 === me.curSel3){
+ me.kv2.setValue('');
+ }else{
+ me.kv2.setValue((me.curSel2 === 'c') ? me.bootdisk : me.curSel2);
+ }
+
me.compute_sel3();
},
--
1.7.10.4
More information about the pve-devel
mailing list