comparison app/view/form/Ortszuordnung.js @ 1295:171eacf989d8

Show error and warnings in new forms
author Maximilian Krambach <mkrambach@intevation.de>
date Thu, 02 Feb 2017 11:04:01 +0100
parents e9f812528324
children 3025014e83c6
comparison
equal deleted inserted replaced
1294:c1b7db04b39c 1295:171eacf989d8
206 content = errors[key]; 206 content = errors[key];
207 var errorText = ''; 207 var errorText = '';
208 for (var i = 0; i < content.length; i++) { 208 for (var i = 0; i < content.length; i++) {
209 errorText += i18n.getMsg(content[i].toString()) + '\n'; 209 errorText += i18n.getMsg(content[i].toString()) + '\n';
210 } 210 }
211 element.markInvalid(errorText); 211 element.showErrors(errorText);
212 } 212 }
213 } 213 }
214 }, 214 },
215 215
216 clearMessages: function() { 216 clearMessages: function() {

http://lada.wald.intevation.org