fix jslint errors in ha resources

also the correct value for haGroupSelector is [] not '',
with this, the reset button works correctly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2016-11-02 12:50:42 +01:00 committed by Dietmar Maurer
parent cb38d277de
commit 290a3751af
3 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,7 @@ Ext.define('PVE.ha.GroupSelector', {
extend: 'PVE.form.ComboGrid', extend: 'PVE.form.ComboGrid',
alias: ['widget.pveHAGroupSelector'], alias: ['widget.pveHAGroupSelector'],
value: [],
autoSelect: false, autoSelect: false,
valueField: 'group', valueField: 'group',
displayField: 'group', displayField: 'group',

View File

@ -75,7 +75,6 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
{ {
xtype: 'pveHAGroupSelector', xtype: 'pveHAGroupSelector',
name: 'group', name: 'group',
value: '',
fieldLabel: gettext('Group') fieldLabel: gettext('Group')
}, },
{ {

View File

@ -176,7 +176,7 @@ Ext.define('PVE.ha.ResourcesView', {
extend: 'Ext.data.Model', extend: 'Ext.data.Model',
fields: [ fields: [
'sid', 'state', 'digest', 'errors', 'group', 'comment', 'sid', 'state', 'digest', 'errors', 'group', 'comment',
'max_restart', 'max_relocate', 'max_restart', 'max_relocate'
], ],
idProperty: 'sid' idProperty: 'sid'
}); });