[Lada-commits] [PATCH 1 of 2] Fixed initial length of deskriptor string

Wald Commits scm-commit at wald.intevation.org
Wed Jan 18 14:56:20 CET 2017


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1484747678 -3600
# Node ID 8012e5212bd56069c16128ce99139eee09356add
# Parent  8f37f8832c4ab3d7cf444f9c01049b01b5ee233f
Fixed initial length of deskriptor string.

diff -r 8f37f8832c4a -r 8012e5212bd5 app/controller/form/Probe.js
--- a/app/controller/form/Probe.js	Wed Jan 11 16:32:51 2017 +0100
+++ b/app/controller/form/Probe.js	Wed Jan 18 14:54:38 2017 +0100
@@ -230,9 +230,9 @@
         var desk = field.up('deskriptor');
         var media = field.up('probeform').down('textfield[name="mediaDesk"]');
         var current = media.getValue().split(' ');
-        if (current.length < 12) {
+        if (current.length < 13) {
             var value;
-            for (var i = 0; i < 12; i++) {
+            for (var i = 0; i < 13; i++) {
                 if (i === 0) {
                     current.push('D:');
                 }


More information about the Lada-commits mailing list