From 3ab80554c66047fe7c1ec654030cafeb4e80d039 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 8 Jan 2018 12:58:56 +0100 Subject: [PATCH] ComboGrid: improve setting 'editable' default value port commit bff876ecb5f3388b7d65c491680b9a40574e4744 from pve-manager commit message: This allows child classes to use another default, the initialConfig didn't allowed that. This is also the ExtJS like way to set defaults. Signed-off-by: Thomas Lamprecht --- form/ComboGrid.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/form/ComboGrid.js b/form/ComboGrid.js index 9c88a5d..b9fea19 100644 --- a/form/ComboGrid.js +++ b/form/ComboGrid.js @@ -30,6 +30,8 @@ Ext.define('Proxmox.form.ComboGrid', { // needed to trigger onKeyUp etc. enableKeyEvents: true, + editable: false, + // override ExtJS method // if the field has multiSelect enabled, the store is not loaded, and // the displayfield == valuefield, it saves the rawvalue as an array @@ -254,10 +256,6 @@ Ext.define('Proxmox.form.ComboGrid', { initComponent: function() { var me = this; - if (me.initialConfig.editable === undefined) { - me.editable = false; - } - Ext.apply(me, { queryMode: 'local', matchFieldWidth: false -- 2.39.2