]>
git.proxmox.com Git - pve-manager-legacy.git/blob - www/manager/qemu/DisplayEdit.js
1 Ext
.define('PVE.qemu.DisplayEdit', {
2 extend
: 'PVE.window.Edit',
6 initComponent : function() {
11 var validateDisplay = function() {
12 var val
= displayField
.getValue();
14 if (me
.vmconfig
&& val
.match(/^serial\d+$/)) {
15 if (me
.vmconfig
[val
] && me
.vmconfig
[val
] === 'socket') {
18 return "Serial interface '" + val
+ "' is not correctly configured.";
24 displayField
= Ext
.createWidget('DisplaySelector', {
27 fieldLabel
: gettext('Graphic card'),
28 validator
: validateDisplay
32 subject
: gettext('Display'),
40 success: function(response
, options
) {
41 var values
= response
.result
.data
;