Mercurial > lada > lada-client
diff app/controller/form/Probe.js @ 851:c89d6de27fd3
merged.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 08 Jul 2015 12:42:19 +0200 |
parents | af9d506b0700 |
children | 81e7c847cb58 |
line wrap: on
line diff
--- a/app/controller/form/Probe.js Wed Jul 08 12:41:55 2015 +0200 +++ b/app/controller/form/Probe.js Wed Jul 08 12:42:19 2015 +0200 @@ -61,16 +61,13 @@ /** * When a Messtelle is selected, modify the Netzbetreiber * according to the Messstelle - * TODO: The conditions when to apply this automatism are still - * unclear. Right now it is only applied when the NB is not set. */ setNetzbetreiber: function(combo, records){ var netzbetreiber = combo.up().up('form') .down('netzbetreiber').down('combobox'); var nbId = records[0].get('netzbetreiberId'); - if (nbId != null && - (netzbetreiber.value === '' || netzbetreiber.value === null)) { + if (nbId != null) { //select the NB in the NB-Combobox netzbetreiber.select(nbId); }