Mercurial > lada > lada-client
diff app/model/MKommentar.js @ 179:f1f0351b6e2f
Show List of Messungskommentare
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 04 Jul 2013 12:21:25 +0200 |
parents | 0b635b836903 |
children | 8970cbad6cae |
line wrap: on
line diff
--- a/app/model/MKommentar.js Thu Jul 04 11:24:02 2013 +0200 +++ b/app/model/MKommentar.js Thu Jul 04 12:21:25 2013 +0200 @@ -1,14 +1,14 @@ Ext.define('Lada.model.MKommentar', { extend: 'Ext.data.Model', fields: [ - {name: "kId"}, + {name: "id"}, {name: "messungsId"}, {name: "probeId"}, {name: "erzeuger"}, {name: "kdatum", type: 'date', convert: ts2date, defaultValue: new Date()}, {name: "ktext"} ], - idProperty: "kId", + idProperty: "id", proxy: { type: 'rest', appendId: true, //default @@ -19,7 +19,7 @@ } }, getEidi: function() { - var kid = this.get('kId'); + var kid = this.get('id.kid'); var messId = this.get('messungsId'); var probeId = this.get('probeId'); return "/" + kid + "/" + messId + "/" + probeId;