indentation cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-01-30 17:50:16 +01:00
parent 1aaba242fb
commit 68689d7374
2 changed files with 11 additions and 11 deletions

View File

@ -42,8 +42,8 @@ Ext.define('Proxmox.panel.InputPanel', {
var values = {}; var values = {};
Ext.Array.each(me.query('[isFormField]'), function(field) { Ext.Array.each(me.query('[isFormField]'), function(field) {
if (!dirtyOnly || field.isDirty()) { if (!dirtyOnly || field.isDirty()) {
Proxmox.Utils.assemble_field_data(values, field.getSubmitData()); Proxmox.Utils.assemble_field_data(values, field.getSubmitData());
} }
}); });
@ -67,10 +67,10 @@ Ext.define('Proxmox.panel.InputPanel', {
var field = me.query('[isFormField][name=' + fieldId + ']')[0]; var field = me.query('[isFormField][name=' + fieldId + ']')[0];
if (field) { if (field) {
field.setValue(val); field.setValue(val);
if (form.trackResetOnLoad) { if (form.trackResetOnLoad) {
field.resetOriginalValue(); field.resetOriginalValue();
} }
} }
}); });
}, },

View File

@ -88,11 +88,11 @@ Ext.define('Proxmox.window.Edit', {
Ext.iterate(values, function(fieldId, val) { Ext.iterate(values, function(fieldId, val) {
var field = form.findField(fieldId); var field = form.findField(fieldId);
if (field && !field.up('inputpanel')) { if (field && !field.up('inputpanel')) {
field.setValue(val); field.setValue(val);
if (form.trackResetOnLoad) { if (form.trackResetOnLoad) {
field.resetOriginalValue(); field.resetOriginalValue();
} }
} }
}); });
Ext.Array.each(me.query('inputpanel'), function(panel) { Ext.Array.each(me.query('inputpanel'), function(panel) {