]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
pass given defaults in Edit window
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 18 Dec 2017 09:36:14 +0000 (10:36 +0100)
committerDominik Csapak <d.csapak@proxmox.com>
Thu, 11 Jan 2018 13:48:13 +0000 (14:48 +0100)
this is a port of the change for the Edit window from
pve-manager commit:
ff740ccbeed1e7e2131b14c9ce50f300f24201f6

which passes the given defaults to the items

window/Edit.js

index b736a85c1fe3c71bc59a13ef55b826183339afdd..0d5194447d88ed2c356c1d4bd1e6858b5bbf53ae 100644 (file)
@@ -215,9 +215,9 @@ Ext.define('Proxmox.window.Edit', {
            trackResetOnLoad: true,
            bodyPadding: 10,
            border: false,
-           defaults: {
+           defaults: Ext.apply({}, me.defaults, {
                border: false
-           },
+           }),
            fieldDefaults: Ext.apply({}, me.fieldDefaults, {
                labelWidth: 100,
                anchor: '100%'