comparison app/controller/OrtGrid.js @ 556:d5ad2f43658a

Update probe window and ort grid only on save success.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 06 Mar 2015 17:02:48 +0100
parents d47ee7439f44
children fa52f383daf8
comparison
equal deleted inserted replaced
555:7f8e64c5bd2e 556:d5ad2f43658a
32 grid.view.panel.down('button[action=open]').enable(); 32 grid.view.panel.down('button[action=open]').enable();
33 } 33 }
34 }, 34 },
35 35
36 gridSave: function(editor, context) { 36 gridSave: function(editor, context) {
37 context.record.save(); 37 context.record.save({
38 context.grid.store.reload(); 38 success: function() {
39 context.grid.up('window').initData(); 39 context.grid.store.reload();
40 context.grid.up('window').initData();
41 },
42 failure: function() {
43 // TODO
44 }
45 });
40 }, 46 },
41 47
42 open: function() { 48 open: function() {
43 console.log('open'); 49 console.log('open');
44 }, 50 },

http://lada.wald.intevation.org