changeset 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 (2013-06-11)
parents 079f99229eff
children ee1d1305dcff
files app/controller/Proben.js
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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();
     },

http://lada.wald.intevation.org