Mercurial > lada > lada-client
diff app/controller/form/Probe.js @ 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 | ff4330d4aba1 |
children | ebc275959f81 |
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()); },