comparison app/view/window/DeleteProbe.js @ 999:f73ca04d73a7 stammdatengrids

Refactored Server URL
author Dustin Demuth <dustin@intevation.de>
date Wed, 13 Jan 2016 14:50:28 +0100
parents f220ba587c89
children 8567d14dfc9d
comparison
equal deleted inserted replaced
984:b21421ba6917 999:f73ca04d73a7
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