comparison 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
comparison
equal deleted inserted replaced
815:23d2204eaf7c 816:e25fcc9269df
120 } 120 }
121 }); 121 });
122 }, 122 },
123 123
124 /** 124 /**
125 * The discard function resets the Location form 125 * The discard function resets the Probe form
126 * to its original state. 126 * to its original state.
127 */ 127 */
128 discard: function(button) { 128 discard: function(button) {
129 var formPanel = button.up('form'); 129 var formPanel = button.up('form');
130
131 formPanel.down('fset[name=entnahmePeriod]').clearMessages();
132 formPanel.down('fset[name=sollzeitPeriod]').clearMessages();
133 formPanel.down('datetime[name=probeentnahmeBeginn]').clearWarningOrError();
134 formPanel.down('datetime[name=probeentnahmeEnde]').clearWarningOrError();
135 formPanel.down('datetime[name=solldatumBeginn]').clearWarningOrError();
136 formPanel.down('datetime[name=solldatumEnde]').clearWarningOrError();
137
130 formPanel.down('umwelt').store.clearFilter(); 138 formPanel.down('umwelt').store.clearFilter();
131 formPanel.getForm().loadRecord(formPanel.getForm().getRecord()); 139 formPanel.getForm().loadRecord(formPanel.getForm().getRecord());
132 }, 140 },
133 141
134 /** 142 /**

http://lada.wald.intevation.org