Mercurial > lada > lada-client
changeset 1085:3c42c06e3a36
Decreased descriptor string parts.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 28 Apr 2016 16:46:48 +0200 |
parents | 54457d3f7f63 |
children | b0873dfcef1d 01bcca98ae8f |
files | app/controller/form/Probe.js |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/app/controller/form/Probe.js Thu Apr 28 11:38:25 2016 +0200 +++ b/app/controller/form/Probe.js Thu Apr 28 16:46:48 2016 +0200 @@ -231,8 +231,8 @@ var media = field.up('probeform').down('textfield[name="mediaDesk"]'); var current = media.getValue().split(' '); - if (current.length < 13) { - for (var i = 0; i <= 12; i++) { + if (current.length < 12) { + for (var i = 0; i < 12; i++) { if (i === 0) { current.push('D:'); } @@ -261,7 +261,7 @@ } current[desk.layer + 1] = value; if (desk.layer < 2) { - for (var i = desk.layer + 2; i < 13; i++) { + for (var i = desk.layer + 2; i < 12; i++) { current[i] = '00'; } this.clearChildDesk(desk);