Mercurial > lada > lada-client
changeset 132:04439f3feba3
Use getEidi on url generation for delete requests.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 25 Jun 2013 17:30:58 +0200 |
parents | 968806c1a3cb |
children | 819bfedb70de |
files | app/controller/Zusatzwerte.js |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/app/controller/Zusatzwerte.js Tue Jun 25 17:30:01 2013 +0200 +++ b/app/controller/Zusatzwerte.js Tue Jun 25 17:30:58 2013 +0200 @@ -63,10 +63,7 @@ Ext.MessageBox.confirm('Löschen', 'Sind Sie sicher?', function(btn){ if(btn === 'yes'){ var store = grid.getStore(); - var sprobenZusatz = selection.get('sprobenZusatz'); - var pzsId = sprobenZusatz.pzsId; - var probeId = selection.get('probeId'); - var deleteUrl = selection.getProxy().url + "/" + pzsId + "/" + probeId; + var deleteUrl = selection.getProxy().url + selection.getEidi(); Ext.Ajax.request({ url: deleteUrl, method: 'DELETE',