comparison app/view/window/DeleteProbe.js @ 1007:23bfcbdb4527

merged.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 20 Jan 2016 17:33:33 +0100
parents f73ca04d73a7
children 8567d14dfc9d
comparison
equal deleted inserted replaced
1002:54179b6043b6 1007:23bfcbdb4527
48 }, { 48 }, {
49 text: i18n.getMsg('delete'), 49 text: i18n.getMsg('delete'),
50 handler: function() { 50 handler: function() {
51 51
52 Ext.Ajax.request({ 52 Ext.Ajax.request({
53 //TODO Use correct URLs 53 url: 'lada-server/rest/probe/'+me.record.get('id'),
54 url: 'lada-server/probe/'+me.record.get('id'),
55 method: 'DELETE', 54 method: 'DELETE',
56 success: function(response) { 55 success: function(response) {
57 var json = Ext.JSON.decode(response.responseText); 56 var json = Ext.JSON.decode(response.responseText);
58 if (json.success && json.message === '200') { 57 if (json.success && json.message === '200') {
59 Ext.Msg.show({ 58 Ext.Msg.show({

http://lada.wald.intevation.org