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 = {};
Ext.Array.each(me.query('[isFormField]'), function(field) {
if (!dirtyOnly || field.isDirty()) {
Proxmox.Utils.assemble_field_data(values, field.getSubmitData());
if (!dirtyOnly || field.isDirty()) {
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];
if (field) {
field.setValue(val);
if (form.trackResetOnLoad) {
field.resetOriginalValue();
}
}
if (form.trackResetOnLoad) {
field.resetOriginalValue();
}
}
});
},

View File

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