comparison app/controller/form/Probe.js @ 829:ebc275959f81

Fixed descriptor selection.
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 15 Jun 2015 15:02:33 +0200
parents e25fcc9269df
children cf35c6305370
comparison
equal deleted inserted replaced
828:0d821965812b 829:ebc275959f81
209 209
210 deskriptorSelect: function(field, records) { 210 deskriptorSelect: function(field, records) {
211 var desk = field.up('deskriptor'); 211 var desk = field.up('deskriptor');
212 var media = field.up('probeform').down('textfield[name="mediaDesk"]'); 212 var media = field.up('probeform').down('textfield[name="mediaDesk"]');
213 var current = media.getValue().split(' '); 213 var current = media.getValue().split(' ');
214 this.clearChildDesk(field.up('deskriptor'), current); 214
215 if (current.length < 13) { 215 if (current.length < 13) {
216 for (var i = 0; i <= 12; i++) { 216 for (var i = 0; i <= 12; i++) {
217 if (i === 0) { 217 if (i === 0) {
218 current.push('D:'); 218 current.push('D:');
219 } 219 }

http://lada.wald.intevation.org