Mercurial > lada > lada-client
comparison app/view/grid/Orte.js @ 1296:6043187c6e8d
Show staat iso code in orte grids.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 02 Feb 2017 11:13:09 +0100 |
parents | 16a80ca16732 |
children | 5dfd5798cbcc |
comparison
equal
deleted
inserted
replaced
1295:171eacf989d8 | 1296:6043187c6e8d |
---|---|
119 }, { | 119 }, { |
120 header: i18n.getMsg('orte.staatId'), | 120 header: i18n.getMsg('orte.staatId'), |
121 dataIndex: 'staatId', | 121 dataIndex: 'staatId', |
122 width: 70, | 122 width: 70, |
123 renderer: function(value) { | 123 renderer: function(value) { |
124 if (!value) { | 124 if (value === undefined || value === '') { |
125 return ''; | 125 return ''; |
126 } | 126 } |
127 var staaten = Ext.data.StoreManager.get('staaten'); | 127 var staaten = Ext.data.StoreManager.get('staaten'); |
128 var record = staaten.getById(value); | 128 var record = staaten.getById(value); |
129 return record.get('staatIso'); | 129 return record.get('staatIso'); |