From 3637defc27995da4ba329669769830ca698198aa Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 14 Apr 2022 07:53:45 +0200 Subject: [PATCH] edit window: small code style/nits Signed-off-by: Thomas Lamprecht --- src/window/Edit.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/window/Edit.js b/src/window/Edit.js index 488642d..573c24c 100644 --- a/src/window/Edit.js +++ b/src/window/Edit.js @@ -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]; -- 2.39.2