[Lada-commits] [PATCH 4 of 4] Removed a Bug where Datetimepickler errormessages where not reset on Form Discard
Wald Commits
scm-commit at wald.intevation.org
Fri May 29 08:24:19 CEST 2015
# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1432827470 -7200
# Node ID e25fcc9269df94269a84f45c8f66ed84974057fe
# Parent 23d2204eaf7ccae9907c5ac6b93fe49619c92e56
Removed a Bug where Datetimepickler errormessages where not reset on Form Discard
diff -r 23d2204eaf7c -r e25fcc9269df app/controller/form/Probe.js
--- a/app/controller/form/Probe.js Thu May 28 16:23:51 2015 +0200
+++ b/app/controller/form/Probe.js Thu May 28 17:37:50 2015 +0200
@@ -122,11 +122,19 @@
},
/**
- * The discard function resets the Location form
+ * The discard function resets the Probe form
* to its original state.
*/
discard: function(button) {
var formPanel = button.up('form');
+
+ formPanel.down('fset[name=entnahmePeriod]').clearMessages();
+ formPanel.down('fset[name=sollzeitPeriod]').clearMessages();
+ formPanel.down('datetime[name=probeentnahmeBeginn]').clearWarningOrError();
+ formPanel.down('datetime[name=probeentnahmeEnde]').clearWarningOrError();
+ formPanel.down('datetime[name=solldatumBeginn]').clearWarningOrError();
+ formPanel.down('datetime[name=solldatumEnde]').clearWarningOrError();
+
formPanel.down('umwelt').store.clearFilter();
formPanel.getForm().loadRecord(formPanel.getForm().getRecord());
},
diff -r 23d2204eaf7c -r e25fcc9269df app/view/form/Probe.js
--- a/app/view/form/Probe.js Thu May 28 16:23:51 2015 +0200
+++ b/app/view/form/Probe.js Thu May 28 17:37:50 2015 +0200
@@ -290,6 +290,7 @@
}]
}];
this.callParent(arguments);
+ this.clearMessages();
},
setRecord: function(record) {
More information about the Lada-commits
mailing list