Mercurial > lada > lada-client
changeset 816:e25fcc9269df
Removed a Bug where Datetimepickler errormessages where not reset on Form Discard
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 28 May 2015 17:37:50 +0200 |
parents | 23d2204eaf7c |
children | 1321efe444f0 |
files | app/controller/form/Probe.js app/view/form/Probe.js |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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()); },