Mercurial > lada > lada-client
comparison app/controller/form/Probe.js @ 932:c8aceb9e60cc
fix descriptor editing
author | Michael Stanko <mstanko@bfs.de> |
---|---|
date | Wed, 23 Sep 2015 07:39:30 +0200 |
parents | 81e7c847cb58 |
children | 8dd758b9b8ea |
comparison
equal
deleted
inserted
replaced
931:746b429917a8 | 932:c8aceb9e60cc |
---|---|
255 } | 255 } |
256 else { | 256 else { |
257 value = records[0].get('sn'); | 257 value = records[0].get('sn'); |
258 } | 258 } |
259 current[desk.layer + 1] = value; | 259 current[desk.layer + 1] = value; |
260 for (var i = desk.layer + 2; i < 13; i++) { | 260 if (desk.layer < 2) { |
261 current[i] = '00'; | 261 for (var i = desk.layer + 2; i < 13; i++) { |
262 } | 262 current[i] = '00'; |
263 this.clearChildDesk(desk); | 263 } |
264 this.clearChildDesk(desk); | |
265 } | |
266 else if (desk.layer === 2 && current[1] === '01') { | |
267 current[4] = '00'; | |
268 // hier muss noch S3 in der Maske geleert werden | |
269 } | |
264 } | 270 } |
265 media.setValue(current.join(' ').trim()); | 271 media.setValue(current.join(' ').trim()); |
266 }, | 272 }, |
267 | 273 |
268 clearChildDesk: function(field) { | 274 clearChildDesk: function(field) { |