sometimes it's necessary or handy to add custom options to the submit
api call (e.g. timeout). So just expose a `submitOptions` where users
of the edit window can put their custom options.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
// custom submitText
submitText: undefined,
+ // custom options for the submit api call
+ submitOptions: {},
+
backgroundDelay: 0,
// string or function, called as (url, values) - useful if the ID of the
values = undefined;
}
- Proxmox.Utils.API2Request({
+ let requestOptions = Ext.apply({
url: url,
waitMsgTarget: me,
method: me.method || (me.backgroundDelay ? 'POST' : 'PUT'),
me.close();
}
},
- });
+ }, me.submitOptions ?? {});
+ Proxmox.Utils.API2Request(requestOptions);
},
load: function(options) {