comparison app/controller/form/Ortserstellung.js @ 1379:e95ac7584c2c

Only displaying own messpunkte in ortszuordnung after creation of new messpunkt
author Maximilian Krambach <mkrambach@intevation.de>
date Tue, 14 Feb 2017 14:30:15 +0100
parents 9cac9eb1365f
children
comparison
equal deleted inserted replaced
1378:0b2d6db2be7e 1379:e95ac7584c2c
71 formpanel.setMessages(json.errors, json.warnings); 71 formpanel.setMessages(json.errors, json.warnings);
72 } 72 }
73 if (ozw.ortstore) { 73 if (ozw.ortstore) {
74 ozw.ortstore.load({ 74 ozw.ortstore.load({
75 callback: function(records, operation, success) { 75 callback: function(records, operation, success) {
76 ozw.ortstore.filter('netzbetreiberId', Lada.netzbetreiber[0]);
76 ozw.down('map').addLocations(ozw.ortstore); 77 ozw.down('map').addLocations(ozw.ortstore);
77 var osg = ozw.down('ortstammdatengrid'); 78 var osg = ozw.down('ortstammdatengrid');
78 osg.setStore(ozw.ortstore); 79 osg.setStore(ozw.ortstore);
79 me.afterSave(formpanel, json); 80 me.afterSave(formpanel, json);
80 }, 81 },
81 scope: this 82 scope: this
82 }); 83 });
83 } else { 84 } else {
84 var osgstore = ozw.down('ortstammdatengrid').getStore(); 85 var osgstore = ozw.down('ortstammdatengrid').getStore();
85 osgstore.load(); 86 osgstore.load({
87 callback: function() {
88 osgstore.filter('netzbetreiberId', Lada.netzbetreiber[0]);
89 }
90 });
86 ozw.down('map').addLocations(osgstore); 91 ozw.down('map').addLocations(osgstore);
87 me.afterSave(formpanel, json); 92 me.afterSave(formpanel, json);
88 } 93 }
89 }, 94 },
90 failure: function(record, response) { 95 failure: function(record, response) {

http://lada.wald.intevation.org