Mercurial > lada > lada-client
comparison app/controller/form/Messprogramm.js @ 1088:60af12dd4a13
Decreased descriptor string parts in Messprogramm.
author | Michael Stanko <mstanko@bfs.de> |
---|---|
date | Fri, 29 Apr 2016 11:08:10 +0200 |
parents | 61cc583c3649 |
children | 7baaf2cd3f57 |
comparison
equal
deleted
inserted
replaced
1087:b0873dfcef1d | 1088:60af12dd4a13 |
---|---|
322 deskriptorSelect: function(field, records) { | 322 deskriptorSelect: function(field, records) { |
323 var desk = field.up('deskriptor'); | 323 var desk = field.up('deskriptor'); |
324 var media = field.up('messprogrammform').down('textfield[name="mediaDesk"]'); | 324 var media = field.up('messprogrammform').down('textfield[name="mediaDesk"]'); |
325 var current = media.getValue().split(' '); | 325 var current = media.getValue().split(' '); |
326 | 326 |
327 if (current.length < 13) { | 327 if (current.length < 12) { |
328 for (var i = 0; i <= 12; i++) { | 328 for (var i = 0; i <= 12; i++) { |
329 if (i === 0) { | 329 if (i === 0) { |
330 current.push('D:'); | 330 current.push('D:'); |
331 } | 331 } |
332 else if (i === desk.layer + 1) { | 332 else if (i === desk.layer + 1) { |
352 else { | 352 else { |
353 value = records[0].get('sn'); | 353 value = records[0].get('sn'); |
354 } | 354 } |
355 current[desk.layer + 1] = value; | 355 current[desk.layer + 1] = value; |
356 if (desk.layer < 2) { | 356 if (desk.layer < 2) { |
357 for (var i = desk.layer + 2; i < 13; i++) { | 357 for (var i = desk.layer + 2; i < 12; i++) { |
358 current[i] = '00'; | 358 current[i] = '00'; |
359 } | 359 } |
360 this.clearChildDesk(desk); | 360 this.clearChildDesk(desk); |
361 } | 361 } |
362 else if (desk.layer === 2 && current[1] === '01') { | 362 else if (desk.layer === 2 && current[1] === '01') { |