Mercurial > lada > lada-client
comparison app/controller/Kommentare.js @ 204:4a79323336c6
Removed unneeded listeners. There is not editdialog.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 08 Jul 2013 16:46:48 +0200 |
parents | 7b1140bd8b3d |
children | 6c030e5739a7 |
comparison
equal
deleted
inserted
replaced
203:8970cbad6cae | 204:4a79323336c6 |
---|---|
27 click: this.saveKommentar | 27 click: this.saveKommentar |
28 }, | 28 }, |
29 'kommentarecreate form': { | 29 'kommentarecreate form': { |
30 savesuccess: this.createSuccess, | 30 savesuccess: this.createSuccess, |
31 savefailure: this.createFailure | 31 savefailure: this.createFailure |
32 }, | |
33 'kommentareedit form': { | |
34 savesuccess: this.editSuccess, | |
35 savefailure: this.editFailure | |
36 } | 32 } |
37 }); | 33 }); |
38 }, | 34 }, |
39 saveKommentar: function(button) { | 35 saveKommentar: function(button) { |
40 console.log('Saving Kommentar'); | 36 console.log('Saving Kommentar'); |
85 title: 'Fehler beim Speichern', | 81 title: 'Fehler beim Speichern', |
86 msg: form.message, | 82 msg: form.message, |
87 icon: Ext.MessageBox.ERROR, | 83 icon: Ext.MessageBox.ERROR, |
88 buttons: Ext.Msg.OK | 84 buttons: Ext.Msg.OK |
89 }); | 85 }); |
90 }, | |
91 editSuccess: function(form, record, operation) { | |
92 // Reload store | |
93 var store = this.getKommentareStore(); | |
94 store.reload(); | |
95 var win = form.up('window'); | |
96 win.close(); | |
97 }, | |
98 editFailure: function(form, record, operation) { | |
99 Ext.MessageBox.show({ | |
100 title: 'Fehler beim Speichern', | |
101 msg: form.message, | |
102 icon: Ext.MessageBox.ERROR, | |
103 buttons: Ext.Msg.OK | |
104 }); | |
105 } | 86 } |
106 }); | 87 }); |