changeset 227:d3f4a39bf89e

Set IdProperty and fix creating and updating mkommentar
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 17 Jul 2013 10:58:03 +0200
parents 2794341bfc8a
children 08144d625b2b
files app/model/MKommentar.js
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/model/MKommentar.js	Wed Jul 17 10:56:06 2013 +0200
+++ b/app/model/MKommentar.js	Wed Jul 17 10:58:03 2013 +0200
@@ -2,6 +2,7 @@
     extend: 'Ext.data.Model',
     fields: [
         {name: "id"},
+        {name: "kid"},
         {name: "messungsId"},
         {name: "probeId"},
         {name: "erzeuger"},
@@ -19,7 +20,7 @@
         }
     },
     getEidi: function() {
-        var kid =  this.get('id').kid;
+        var kid =  this.get('kid');
         var messId = this.get('messungsId');
         var probeId = this.get('probeId');
         return "/" + kid + "/" + messId + "/" + probeId;

http://lada.wald.intevation.org