[Lada-commits] [PATCH 2 of 4] Removed unneeded listeners. There is not editdialog
Wald Commits
scm-commit at wald.intevation.org
Mon Jul 8 16:48:48 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1373294808 -7200
# Node ID 4a79323336c6d88f7a3f5a98979601fda9740712
# Parent 8970cbad6cae76002421472eb6d6f4f419fc3f36
Removed unneeded listeners. There is not editdialog.
diff -r 8970cbad6cae -r 4a79323336c6 app/controller/Kommentare.js
--- 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
- });
}
});
More information about the Lada-commits
mailing list