comparison app/controller/OrtGrid.js @ 574:8d2cf853eed2

merged.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 10 Mar 2015 14:33:03 +0100
parents fa52f383daf8
children
comparison
equal deleted inserted replaced
573:6a1af698510e 574:8d2cf853eed2
44 } 44 }
45 }); 45 });
46 }, 46 },
47 47
48 open: function() { 48 open: function() {
49 // todo
49 console.log('open'); 50 console.log('open');
50 }, 51 },
51 52
52 add: function() { 53 add: function() {
54 // todo
53 console.log('add'); 55 console.log('add');
54 }, 56 },
55 57
56 remove: function(button) { 58 remove: function(button) {
57 var grid = button.up('grid'); 59 var grid = button.up('grid');
58 var selection = grid.getView().getSelectionModel().getSelection()[0]; 60 var selection = grid.getView().getSelectionModel().getSelection()[0];
59 Ext.MessageBox.confirm('Löschen', 'Sind Sie sicher?', function(btn) { 61 Ext.MessageBox.confirm('Ortsangabe löschen', 'Sind Sie sicher?', function(btn) {
60 if (btn === 'yes') { 62 if (btn === 'yes') {
61 selection.destroy({ 63 selection.destroy({
62 success: function() { 64 success: function() {
63 button.up('window').initData(); 65 button.up('window').initData();
64 }, 66 },

http://lada.wald.intevation.org