changeset 57:982f3130e7f3

Added idProperty to "id" which is the default anyway. Removed api definition and added kId field to the model.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 29 May 2013 15:19:56 +0200
parents 133fa41d3fe8
children 26863a7af202
files app/model/Kommentar.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/model/Kommentar.js	Wed May 29 15:18:32 2013 +0200
+++ b/app/model/Kommentar.js	Wed May 29 15:19:56 2013 +0200
@@ -2,17 +2,17 @@
     extend: 'Ext.data.Model',
     fields: [
         {name: "id"},
+        {name: "kid"},
         {name: "probeId"},
         {name: "erzeuger"},
         {name: "kdatum"},
         {name: "ktext"}
     ],
+    idProperty: "id",
     proxy: {
         type: 'rest',
         appendId: true, //default
         url: 'server/rest/kommentare',
-        api: {
-        },
         reader: {
             type: 'json'
         }

http://lada.wald.intevation.org