cleanup: run emacs indent-region on SafeDestroy.js

This commit is contained in:
Dietmar Maurer 2016-03-29 09:58:04 +02:00
parent d59ed79b5d
commit fd8a2eea60

View File

@ -5,46 +5,46 @@
Ext.define('PVE.window.SafeDestroy', { Ext.define('PVE.window.SafeDestroy', {
extend: 'Ext.window.Window', extend: 'Ext.window.Window',
alias: 'widget.pveSafeDestroy', alias: 'widget.pveSafeDestroy',
title: gettext('Are you sure ?'), title: gettext('Are you sure?'),
modal: true, modal: true,
buttonAlign: 'center', buttonAlign: 'center',
items: [ items: [
{
itemId: 'safepanel',
xtype: 'container',
padding: 10,
width: 450,
layout: {
type: 'vbox',
align: 'stretch'
},
items: [
{ {
itemId: 'safepanel', itemId: 'message',
xtype: 'container', xtype: 'textarea',
padding: 10, editable: false,
width: 450, },
layout: { {
type: 'vbox', itemId: 'input',
align: 'stretch' xtype: 'numberfield',
}, name: 'VM id',
items: [ fieldLabel: gettext('Please enter the VM ID to confirm'),
{ hideTrigger:true,
itemId: 'message', allowBlank: false,
xtype: 'textarea', listeners: {
editable: false, change: function(f, value) {
}, if (value === this.vmid) {
{ this.submitBtn.enable();
itemId: 'input', } else {
xtype: 'numberfield', this.submitBtn.disable();
name: 'VM id',
fieldLabel: gettext('Please enter the VM ID to confirm'),
hideTrigger:true,
allowBlank: false,
listeners: {
change: function(f, value) {
if (value === this.vmid) {
this.submitBtn.enable();
} else {
this.submitBtn.disable();
}
}
} }
} }
] }
} }
], ]
}
],
buttons: [ buttons: [
{ {
id: 'removeButton', id: 'removeButton',