changeset 1368:75b1b0d7dece

removed unused legacy code
author Maximilian Krambach <mkrambach@intevation.de>
date Wed, 08 Feb 2017 16:33:12 +0100
parents d2a0cb1e5596
children 1cc11bada44e
files app/controller/Ort.js
diffstat 1 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/Ort.js	Wed Feb 08 15:46:58 2017 +0100
+++ b/app/controller/Ort.js	Wed Feb 08 16:33:12 2017 +0100
@@ -29,25 +29,10 @@
                 edit: me.gridSave,
                 canceledit: me.cancelEdit,
                 select: me.selectWindow
-            },
-            'ortpanel map': {
-                featureadded: me.featureadded
             }
         });
     },
 
-    featureadded: function(record) {
-        var grid = Ext.ComponentQuery.query('ortpanel ortstammdatengrid')[0];
-        if (grid.getCollapsed()) {
-            grid.expand();
-        }
-        if (!record.get('letzteAenderung')) {
-            record.data.letzteAenderung = new Date();
-        }
-        grid.store.insert(0, record);
-        grid.rowEditing.startEdit(0, 1);
-    },
-
     activateDraw: function(button) {
         var map = button.up('ortpanel').down('map');
         var record = Ext.create('Lada.model.Ort');

http://lada.wald.intevation.org