diff app/controller/form/Probe.js @ 1085:3c42c06e3a36

Decreased descriptor string parts.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 28 Apr 2016 16:46:48 +0200
parents d198946e5540
children 8f37f8832c4a
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);

http://lada.wald.intevation.org