# HG changeset patch # User Michael Stanko # Date 1442986770 -7200 # Node ID c8aceb9e60ccb4eca9ae98dacff5d4a49088a7fb # Parent 746b429917a861e48a6601ea6e7a16a98a9d82dd fix descriptor editing diff -r 746b429917a8 -r c8aceb9e60cc app/controller/form/Probe.js --- a/app/controller/form/Probe.js Tue Sep 22 12:56:30 2015 +0200 +++ b/app/controller/form/Probe.js Wed Sep 23 07:39:30 2015 +0200 @@ -257,10 +257,16 @@ value = records[0].get('sn'); } current[desk.layer + 1] = value; - for (var i = desk.layer + 2; i < 13; i++) { - current[i] = '00'; + if (desk.layer < 2) { + for (var i = desk.layer + 2; i < 13; i++) { + current[i] = '00'; + } + this.clearChildDesk(desk); } - this.clearChildDesk(desk); + else if (desk.layer === 2 && current[1] === '01') { + current[4] = '00'; +// hier muss noch S3 in der Maske geleert werden + } } media.setValue(current.join(' ').trim()); },