mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-07-27 03:47:53 +00:00
edit window: small code style/nits
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
11d4f4de44
commit
3637defc27
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user