Mercurial > lada > lada-client
diff app/controller/Proben.js @ 86:eb40b74f871a
Reload the store after the probe was created or edited.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 11 Jun 2013 11:43:14 +0200 |
parents | eb8a7d3cca89 |
children | 95b08b96f5c9 |
line wrap: on
line diff
--- a/app/controller/Proben.js Tue Jun 11 11:18:56 2013 +0200 +++ b/app/controller/Proben.js Tue Jun 11 11:43:14 2013 +0200 @@ -48,6 +48,9 @@ console.log("Loaded Probe with ID " + record.getId()); //outputs ID }, createSuccess: function(form, record, operation) { + // Reload store + var store = this.getProbenStore(); + store.reload(); var win = form.up('window'); win.close(); }, @@ -60,6 +63,9 @@ }); }, editSuccess: function(form, record, operation) { + // Reload store + var store = this.getProbenStore(); + store.reload(); var win = form.up('window'); win.close(); },