mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-07-27 14:52:56 +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);
|
me.setValues(response.result.data);
|
||||||
}
|
}
|
||||||
// hack: fix ExtJS bug
|
// hack: fix ExtJS bug
|
||||||
Ext.Array.each(me.query('radiofield'), function(f) {
|
Ext.Array.each(me.query('radiofield'), f => f.resetOriginalValue());
|
||||||
f.resetOriginalValue();
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
failure: function(response, opts) {
|
failure: function(response, opts) {
|
||||||
Ext.Msg.alert(gettext('Error'), response.htmlStatus, function() {
|
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";
|
throw "neither 'url' nor both, submitUrl and loadUrl specified";
|
||||||
}
|
}
|
||||||
|
if (me.create) {
|
||||||
if (me.create) {throw "deprecated parameter, use isCreate";}
|
throw "deprecated parameter, use isCreate";
|
||||||
|
}
|
||||||
|
|
||||||
let items = Ext.isArray(me.items) ? me.items : [me.items];
|
let items = Ext.isArray(me.items) ? me.items : [me.items];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user