[Lada-commits] [PATCH] Decreased descriptor string parts

Wald Commits scm-commit at wald.intevation.org
Thu Apr 28 16:46:52 CEST 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1461854808 -7200
# Node ID 3c42c06e3a3634be49dcce4af96f360244228130
# Parent  54457d3f7f6383344cda5587ef519e8b59d1fc50
Decreased descriptor string parts.

diff -r 54457d3f7f63 -r 3c42c06e3a36 app/controller/form/Probe.js
--- 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);


More information about the Lada-commits mailing list