comparison app/view/form/Probe.js @ 671:08e3e7b80a34

Deskriptor validation with Regex
author Dustin Demuth <dustin@intevation.de>
date Fri, 20 Mar 2015 11:25:48 +0100
parents 05e4ad93d021
children f373446325b4
comparison
equal deleted inserted replaced
670:2927abe98b66 671:08e3e7b80a34
177 scope: me 177 scope: me
178 } 178 }
179 } 179 }
180 }, { 180 }, {
181 xtype: 'textfield', 181 xtype: 'textfield',
182 maxLength: 100, 182 maxLength: 38,
183 enforceMaxLength: true,
183 name: 'mediaDesk', 184 name: 'mediaDesk',
184 labelWidth: 125, 185 labelWidth: 125,
185 fieldLabel: 'Deskriptoren', 186 fieldLabel: 'Deskriptoren',
187 regex: new RegExp('(?:D: ){1}(?:[0-9]{2} ){11}[0-9]{2}'),
188 regexText: 'Die Deskriptoren haben das falsche Format.<br />'+
189 'Richtig wäre: D: 99 99 99 99 99 99 99 99 99 99 99 99',
186 listeners: { 190 listeners: {
187 dirtychange: { 191 dirtychange: {
188 fn: this.updateOnChange, 192 fn: this.updateOnChange,
189 scope: me 193 scope: me
190 } 194 }

http://lada.wald.intevation.org