comparison 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
comparison
equal deleted inserted replaced
850:43f3a53d07d3 851:c89d6de27fd3
59 }, 59 },
60 60
61 /** 61 /**
62 * When a Messtelle is selected, modify the Netzbetreiber 62 * When a Messtelle is selected, modify the Netzbetreiber
63 * according to the Messstelle 63 * according to the Messstelle
64 * TODO: The conditions when to apply this automatism are still
65 * unclear. Right now it is only applied when the NB is not set.
66 */ 64 */
67 setNetzbetreiber: function(combo, records){ 65 setNetzbetreiber: function(combo, records){
68 var netzbetreiber = combo.up().up('form') 66 var netzbetreiber = combo.up().up('form')
69 .down('netzbetreiber').down('combobox'); 67 .down('netzbetreiber').down('combobox');
70 var nbId = records[0].get('netzbetreiberId'); 68 var nbId = records[0].get('netzbetreiberId');
71 69
72 if (nbId != null && 70 if (nbId != null) {
73 (netzbetreiber.value === '' || netzbetreiber.value === null)) {
74 //select the NB in the NB-Combobox 71 //select the NB in the NB-Combobox
75 netzbetreiber.select(nbId); 72 netzbetreiber.select(nbId);
76 } 73 }
77 }, 74 },
78 75

http://lada.wald.intevation.org