diff app/controller/Zusatzwerte.js @ 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 33aed7dde69f
children a7eea094d3d6
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',

http://lada.wald.intevation.org