changeset 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 33aed7dde69f
children 968806c1a3cb
files app.js
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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