comparison app/controller/ProbenzusatzwertGrid.js @ 568:34b2654af158

More specific 'are your sure?' question on delete
author Dustin Demuth <dustin@intevation.de>
date Tue, 10 Mar 2015 11:57:12 +0100
parents 98dee8166459
children 8d2cf853eed2
comparison
equal deleted inserted replaced
567:fa52f383daf8 568:34b2654af158
40 }, 40 },
41 41
42 remove: function(button) { 42 remove: function(button) {
43 var grid = button.up('grid'); 43 var grid = button.up('grid');
44 var selection = grid.getView().getSelectionModel().getSelection()[0]; 44 var selection = grid.getView().getSelectionModel().getSelection()[0];
45 Ext.MessageBox.confirm('Löschen', 'Sind Sie sicher?', function(btn) { 45 Ext.MessageBox.confirm('Zusatzwert löschen', 'Sind Sie sicher?', function(btn) {
46 if (btn === 'yes') { 46 if (btn === 'yes') {
47 selection.destroy({ 47 selection.destroy({
48 success: function() { 48 success: function() {
49 button.up('window').initData(); 49 button.up('window').initData();
50 }, 50 },

http://lada.wald.intevation.org