]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - form/KVComboBox.js
try to use real config properties
[proxmox-widget-toolkit.git] / form / KVComboBox.js
index d8167ac2b6286300d027545eb0300ccb26255901..0970fcfbc2221a23cc8ab77b3a312141db786c46 100644 (file)
@@ -9,7 +9,10 @@ Ext.define('Proxmox.form.KVComboBox', {
     extend: 'Ext.form.field.ComboBox',
     alias: 'widget.proxmoxKVComboBox',
 
-    deleteEmpty: true,
+    config: {
+       deleteEmpty: true
+    },
+
     comboItems: undefined,
     displayField: 'value',
     valueField: 'key',
@@ -25,7 +28,7 @@ Ext.define('Proxmox.form.KVComboBox', {
             if (val !== null && val !== '' && val !== '__default__') {
                 data = {};
                 data[me.getName()] = val;
-            } else if (me.deleteEmpty) {
+            } else if (me.getDeleteEmpty()) {
                 data = {};
                 data['delete'] = me.getName();
             }