comparison app.js @ 967:50d7b6e17525

Filter the selectable Messtellen in the statusgrid
author Dustin Demuth <dustin@intevation.de>
date Thu, 12 Nov 2015 14:51:25 +0100
parents a2c2039bb5d9
children fb99332bb48e
comparison
equal deleted inserted replaced
966:6e67eb947258 967:50d7b6e17525
162 }); 162 });
163 Ext.create('Lada.store.StatusStufe', { 163 Ext.create('Lada.store.StatusStufe', {
164 storeId: 'statusstufe', 164 storeId: 'statusstufe',
165 autoLoad: 'true' 165 autoLoad: 'true'
166 }); 166 });
167 //A Store containing all MST a User is allowed to set.
168 Ext.create('Lada.store.Messstellen', {
169 storeId: 'messstellenFiltered',
170 filters: function(item) {
171 if (Ext.Array.contains(Lada.mst, item.get('id'))) {
172 return true;
173 }
174 return false;
175 }
176 });
167 }, 177 },
168 178
169 getServerVersion: function() { 179 getServerVersion: function() {
170 var i18n = Lada.getApplication().bundle; 180 var i18n = Lada.getApplication().bundle;
171 Ext.Ajax.request({ 181 Ext.Ajax.request({

http://lada.wald.intevation.org