]>
git.proxmox.com Git - pve-manager.git/blob - www/manager/qemu/OSTypeEdit.js
1 Ext
.define('PVE.qemu.OSTypeInputPanel', {
2 extend
: 'PVE.panel.InputPanel',
3 alias
: 'widget.PVE.qemu.OSTypeInputPanel',
5 initComponent : function() {
11 html
: 'Microsoft Windows',
12 cls
:'x-form-check-group-label'
44 html
: 'Linux/' + gettext('Other OS types'),
45 cls
:'x-form-check-group-label'
69 Ext
.Array
.each(me
.column1
, function(def
) {
71 def
.boxLabel
= PVE
.Utils
.render_kvm_ostype(def
.inputValue
);
74 Ext
.Array
.each(me
.column2
, function(def
) {
76 def
.boxLabel
= PVE
.Utils
.render_kvm_ostype(def
.inputValue
);
91 Ext
.define('PVE.qemu.OSTypeEdit', {
92 extend
: 'PVE.window.Edit',
94 initComponent : function() {
99 items
: Ext
.create('PVE.qemu.OSTypeInputPanel')
105 success: function(response
, options
) {
106 var value
= response
.result
.data
.ostype
|| 'other';
107 me
.setValues({ ostype
: value
});