comparison app/controller/form/Probe.js @ 1283:9d298c82575f

Check correct length in deskriptor string.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 18 Jan 2017 16:03:40 +0100
parents 8012e5212bd5
children 81b585645581
comparison
equal deleted inserted replaced
1282:20a2466820ce 1283:9d298c82575f
228 228
229 deskriptorSelect: function(field, records) { 229 deskriptorSelect: function(field, records) {
230 var desk = field.up('deskriptor'); 230 var desk = field.up('deskriptor');
231 var media = field.up('probeform').down('textfield[name="mediaDesk"]'); 231 var media = field.up('probeform').down('textfield[name="mediaDesk"]');
232 var current = media.getValue().split(' '); 232 var current = media.getValue().split(' ');
233 if (current.length < 13) { 233 if (current.length < 12) {
234 var value; 234 var value;
235 for (var i = 0; i < 13; i++) { 235 for (var i = 0; i < 13; i++) {
236 if (i === 0) { 236 if (i === 0) {
237 current.push('D:'); 237 current.push('D:');
238 } 238 }

http://lada.wald.intevation.org