Mercurial > lada > lada-client
comparison app/controller/form/Probe.js @ 1281:8012e5212bd5
Fixed initial length of deskriptor string.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 18 Jan 2017 14:54:38 +0100 |
parents | 8f37f8832c4a |
children | 9d298c82575f |
comparison
equal
deleted
inserted
replaced
1276:8f37f8832c4a | 1281:8012e5212bd5 |
---|---|
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 < 12) { | 233 if (current.length < 13) { |
234 var value; | 234 var value; |
235 for (var i = 0; i < 12; 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 } |
239 else if (i === desk.layer + 1) { | 239 else if (i === desk.layer + 1) { |
240 var value; | 240 var value; |