comparison app/controller/Ort.js @ 1368:75b1b0d7dece

removed unused legacy code
author Maximilian Krambach <mkrambach@intevation.de>
date Wed, 08 Feb 2017 16:33:12 +0100
parents 993e542796fd
children 1cc11bada44e
comparison
equal deleted inserted replaced
1367:d2a0cb1e5596 1368:75b1b0d7dece
27 }, 27 },
28 'ortszuordnungwindow ortstammdatengrid': { 28 'ortszuordnungwindow ortstammdatengrid': {
29 edit: me.gridSave, 29 edit: me.gridSave,
30 canceledit: me.cancelEdit, 30 canceledit: me.cancelEdit,
31 select: me.selectWindow 31 select: me.selectWindow
32 },
33 'ortpanel map': {
34 featureadded: me.featureadded
35 } 32 }
36 }); 33 });
37 },
38
39 featureadded: function(record) {
40 var grid = Ext.ComponentQuery.query('ortpanel ortstammdatengrid')[0];
41 if (grid.getCollapsed()) {
42 grid.expand();
43 }
44 if (!record.get('letzteAenderung')) {
45 record.data.letzteAenderung = new Date();
46 }
47 grid.store.insert(0, record);
48 grid.rowEditing.startEdit(0, 1);
49 }, 34 },
50 35
51 activateDraw: function(button) { 36 activateDraw: function(button) {
52 var map = button.up('ortpanel').down('map'); 37 var map = button.up('ortpanel').down('map');
53 var record = Ext.create('Lada.model.Ort'); 38 var record = Ext.create('Lada.model.Ort');

http://lada.wald.intevation.org