changeset 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 8970cbad6cae
children cd8cd3ac0231
files app/controller/Kommentare.js
diffstat 1 files changed, 0 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/Kommentare.js	Mon Jul 08 16:45:14 2013 +0200
+++ b/app/controller/Kommentare.js	Mon Jul 08 16:46:48 2013 +0200
@@ -29,10 +29,6 @@
             'kommentarecreate form': {
                 savesuccess: this.createSuccess,
                 savefailure: this.createFailure
-            },
-            'kommentareedit form': {
-                savesuccess: this.editSuccess,
-                savefailure: this.editFailure
             }
         });
     },
@@ -87,20 +83,5 @@
             icon: Ext.MessageBox.ERROR,
             buttons: Ext.Msg.OK
         });
-    },
-    editSuccess: function(form, record, operation) {
-        // Reload store
-        var store = this.getKommentareStore();
-        store.reload();
-        var win = form.up('window');
-        win.close();
-    },
-    editFailure: function(form, record, operation) {
-        Ext.MessageBox.show({
-            title: 'Fehler beim Speichern',
-            msg: form.message,
-            icon: Ext.MessageBox.ERROR,
-            buttons: Ext.Msg.OK
-        });
     }
 });

http://lada.wald.intevation.org