Mercurial > lada > lada-client
comparison app/view/form/Probe.js @ 1234:390dabbf27ed
Empty string for media descriptor is disallowed.
This follows server Rev 1ef08710aaeb.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 28 Oct 2016 21:23:31 +0200 |
parents | 4270da0f7d3b |
children | d1f43f1e7e84 |
comparison
equal
deleted
inserted
replaced
1233:a1bbfddb77b9 | 1234:390dabbf27ed |
---|---|
408 } | 408 } |
409 this.down('netzbetreiber').setValue(mstId.get('netzbetreiberId')); | 409 this.down('netzbetreiber').setValue(mstId.get('netzbetreiberId')); |
410 }, | 410 }, |
411 | 411 |
412 setMediaDesk: function(record) { | 412 setMediaDesk: function(record) { |
413 var media = record.get('mediaDesk').split(' '); | 413 var media = record.get('mediaDesk'); |
414 this.setMediaSN(0, media); | 414 if (media) { |
415 var mediaParts = media.split(' '); | |
416 this.setMediaSN(0, mediaParts); | |
417 } | |
415 }, | 418 }, |
416 | 419 |
417 setMediaSN: function(ndx, media) { | 420 setMediaSN: function(ndx, media) { |
418 if (ndx >= 12) { | 421 if (ndx >= 12) { |
419 return; | 422 return; |