comparison app/model/Kommentar.js @ 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 73bc17de6ff2
children 2d6c4f4c9b11
comparison
equal deleted inserted replaced
56:133fa41d3fe8 57:982f3130e7f3
1 Ext.define('Lada.model.Kommentar', { 1 Ext.define('Lada.model.Kommentar', {
2 extend: 'Ext.data.Model', 2 extend: 'Ext.data.Model',
3 fields: [ 3 fields: [
4 {name: "id"}, 4 {name: "id"},
5 {name: "kid"},
5 {name: "probeId"}, 6 {name: "probeId"},
6 {name: "erzeuger"}, 7 {name: "erzeuger"},
7 {name: "kdatum"}, 8 {name: "kdatum"},
8 {name: "ktext"} 9 {name: "ktext"}
9 ], 10 ],
11 idProperty: "id",
10 proxy: { 12 proxy: {
11 type: 'rest', 13 type: 'rest',
12 appendId: true, //default 14 appendId: true, //default
13 url: 'server/rest/kommentare', 15 url: 'server/rest/kommentare',
14 api: {
15 },
16 reader: { 16 reader: {
17 type: 'json' 17 type: 'json'
18 } 18 }
19 } 19 }
20 }); 20 });

http://lada.wald.intevation.org