comparison 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
comparison
equal deleted inserted replaced
254:c2effc4a497b 255:82118c01bc52
85 method: method, 85 method: method,
86 callback: function(option, success, response) { 86 callback: function(option, success, response) {
87 this.parseResponse(response); 87 this.parseResponse(response);
88 if (this.success) { 88 if (this.success) {
89 console.log('Save was successfull'); 89 console.log('Save was successfull');
90 this.fireEvent('savesuccess', this); 90 this.fireEvent('savesuccess', this, this.model, response);
91 } else { 91 } else {
92 console.log('Save was not successfull'); 92 console.log('Save was not successfull');
93 this.form.markInvalid(this.errors); 93 this.form.markInvalid(this.errors);
94 this.fireEvent('savefailure', this); 94 this.fireEvent('savefailure', this, this.model, response);
95 } 95 }
96 }, 96 },
97 scope: this 97 scope: this
98 }); 98 });
99 } 99 }

http://lada.wald.intevation.org