diff app.js @ 130:747d488b9203

Added function getEidi which returns the part of the id of an item which needs to be appended to the store base URL for PUT and DELETE and GET Requests. This function is used to build a custom id. On default it returns the value of getId.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 25 Jun 2013 17:29:17 +0200
parents a7bfaeb1655d
children 7b1140bd8b3d
line wrap: on
line diff
--- a/app.js	Tue Jun 25 14:21:40 2013 +0200
+++ b/app.js	Tue Jun 25 17:29:17 2013 +0200
@@ -53,5 +53,8 @@
         var data2 = this.getAssociatedData( );
         var dataMerged = Ext.Object.merge(data1, data2);
         return dataMerged;
+    },
+    getEidi: function() {
+        return "/" + this.getId();
     }
 });

http://lada.wald.intevation.org