[pve-devel] [RFC manager 14/28] use windowEdit from widget toolkit

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Dec 15 13:54:06 CET 2017


On 12/15/2017 10:18 AM, Dominik Csapak wrote:
> On 12/11/2017 04:26 PM, Thomas Lamprecht wrote:
>> [snip]
>> -
>> -    createWrapper(options.success);
>> -
>> -    PVE.Utils.API2Request(newopts);
>> -    },
>> -
>> -    initComponent : function() {
>> -    var me = this;
>> -
>> -    if (!me.url) {
>> -        throw "no url specified";
>> -    }
>> -
>> -    if (me.create) {throw "deprecated parameter, use isCreate";}
>> -
>> -    var items = Ext.isArray(me.items) ? me.items : [ me.items ];
>> -
>> -    me.items = undefined;
>> -
>> -    me.formPanel = Ext.create('Ext.form.Panel', {
>> -        url: me.url,
>> -        method: me.method || 'PUT',
>> -        trackResetOnLoad: true,
>> -        bodyPadding: 10,
>> -        border: false,
>> -        defaults: Ext.apply({}, me.defaults, {
>> -        border: false
>> -        }),
> 
> this is missing in the widget toolkit (needed for a ceph gui part)

Uh, yeah it looks like I missed that, thanks for catching!
I'll redo window.Edit but wait a bit for v2, maybe you find something else,
or if we got the translation stuff sorted out then maybe some patches could
be even applied already. :)

cheers,
Thomas 

> 
>> -        fieldDefaults: Ext.apply({}, me.fieldDefaults, {
>> -        labelWidth: 100,
>> -        anchor: '100%'
>> -            }),
>> -        items: items
>> -    });
>> -
>> -    var form = me.formPanel.getForm();
>> -





More information about the pve-devel mailing list