]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
edit window: small code style/nits
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 14 Apr 2022 05:53:45 +0000 (07:53 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 14 Apr 2022 05:53:45 +0000 (07:53 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/window/Edit.js

index 488642de7abd3b5a110fb15137b77a3f5bea6740..573c24c3e629fac4fd52d97b206728348161c0da 100644 (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];