edit window: small code style/nits

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-04-14 07:53:45 +02:00
parent 11d4f4de44
commit 3637defc27

View File

@ -229,9 +229,7 @@ Ext.define('Proxmox.window.Edit', {
me.setValues(response.result.data);
}
// hack: fix ExtJS bug
Ext.Array.each(me.query('radiofield'), function(f) {
f.resetOriginalValue();
});
Ext.Array.each(me.query('radiofield'), f => f.resetOriginalValue());
},
failure: function(response, opts) {
Ext.Msg.alert(gettext('Error'), response.htmlStatus, function() {
@ -256,8 +254,9 @@ Ext.define('Proxmox.window.Edit', {
) {
throw "neither 'url' nor both, submitUrl and loadUrl specified";
}
if (me.create) {throw "deprecated parameter, use isCreate";}
if (me.create) {
throw "deprecated parameter, use isCreate";
}
let items = Ext.isArray(me.items) ? me.items : [me.items];