comparison app/controller/grid/Messwert.js @ 739:efb1369a8cac

Enabled autocompletion for Messwerte in a Messung.
author Dustin Demuth <dustin@intevation.de>
date Mon, 20 Apr 2015 14:11:39 +0200
parents f0bc5387abcc
children 2e8da590ea0c
comparison
equal deleted inserted replaced
738:2db5d54a5685 739:efb1369a8cac
25 }, 25 },
26 26
27 gridSave: function(editor, context) { 27 gridSave: function(editor, context) {
28 context.record.save({ 28 context.record.save({
29 success: function(request, response) { 29 success: function(request, response) {
30 Ext.data.StoreManager.get('messgroessen').clearFilters();
31 Ext.data.StoreManager.get('messgroessen').reload();
32 // If you don't do the reset above, the grid will only contain
33 // one row in cases in when autocompletion was used!
30 context.grid.store.reload(); 34 context.grid.store.reload();
31 context.grid.up('window').initData(); 35 context.grid.up('window').initData();
32 }, 36 },
33 failure: function(request, response) { 37 failure: function(request, response) {
34 var json = response.request.scope.reader.jsonData; 38 var json = response.request.scope.reader.jsonData;

http://lada.wald.intevation.org