diff app/view/widgets/LadaForm.js @ 255:82118c01bc52

#57: Open Edit-Dialog after creating a new Probe.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 24 Jul 2013 19:14:02 +0200
parents 08144d625b2b
children 0d6552bb28ea
line wrap: on
line diff
--- a/app/view/widgets/LadaForm.js	Wed Jul 24 15:26:39 2013 +0200
+++ b/app/view/widgets/LadaForm.js	Wed Jul 24 19:14:02 2013 +0200
@@ -87,11 +87,11 @@
                     this.parseResponse(response);
                     if (this.success) {
                         console.log('Save was successfull');
-                        this.fireEvent('savesuccess', this);
+                        this.fireEvent('savesuccess', this, this.model, response);
                     } else {
                         console.log('Save was not successfull');
                         this.form.markInvalid(this.errors);
-                        this.fireEvent('savefailure', this);
+                        this.fireEvent('savefailure', this, this.model, response);
                     }
                 },
                 scope: this

http://lada.wald.intevation.org