From 1289d32611f0aa259878190d5c823d1c2ee8c3cc Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 28 Oct 2020 12:53:52 +0100 Subject: [PATCH] edit window: whitespace/newline cleanups Signed-off-by: Thomas Lamprecht --- src/window/Edit.js | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/window/Edit.js b/src/window/Edit.js index c0e305b..bc8c50a 100644 --- a/src/window/Edit.js +++ b/src/window/Edit.js @@ -9,12 +9,10 @@ Ext.define('Proxmox.window.Edit', { resizable: false, - // use this tio atimatically generate a title like - // Create: + // use this to atimatically generate a title like `Create: ` subject: undefined, - // set isCreate to true if you want a Create button (instead - // OK and RESET) + // set isCreate to true if you want a Create button (instead OK and RESET) isCreate: false, // set to true if you want an Add button (instead of Create) @@ -63,15 +61,14 @@ Ext.define('Proxmox.window.Edit', { getValues: function(dirtyOnly) { let me = this; - let values = {}; - + let values = {}; let form = me.formPanel.getForm(); - form.getFields().each(function(field) { - if (!field.up('inputpanel') && (!dirtyOnly || field.isDirty())) { - Proxmox.Utils.assemble_field_data(values, field.getSubmitData()); - } - }); + form.getFields().each(function(field) { + if (!field.up('inputpanel') && (!dirtyOnly || field.isDirty())) { + Proxmox.Utils.assemble_field_data(values, field.getSubmitData()); + } + }); Ext.Array.each(me.query('inputpanel'), function(panel) { Proxmox.Utils.assemble_field_data(values, panel.getValues(dirtyOnly));