annotate app/model/Kommentar.js @ 72:345896d5e6b5

Added translation files.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 05 Jun 2013 18:01:49 +0200
parents 2d6c4f4c9b11
children 8356595f4fdb
rev   line source
53
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
1 Ext.define('Lada.model.Kommentar', {
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
2 extend: 'Ext.data.Model',
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
3 fields: [
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4 {name: "id"},
57
982f3130e7f3 Added idProperty to "id" which is the default anyway. Removed api definition
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 53
diff changeset
5 {name: "kid"},
53
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 {name: "probeId"},
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
7 {name: "erzeuger"},
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
8 {name: "kdatum"},
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9 {name: "ktext"}
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 ],
62
2d6c4f4c9b11 Added comment on the id key in kommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 57
diff changeset
11 // TODO: This id field is currently a combined field of probeId and kid
2d6c4f4c9b11 Added comment on the id key in kommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 57
diff changeset
12 // which cases problems when generating a request with this id to the
2d6c4f4c9b11 Added comment on the id key in kommentare.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 57
diff changeset
13 // server.
57
982f3130e7f3 Added idProperty to "id" which is the default anyway. Removed api definition
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 53
diff changeset
14 idProperty: "id",
53
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 proxy: {
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 type: 'rest',
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 appendId: true, //default
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 url: 'server/rest/kommentare',
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
19 reader: {
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
20 type: 'json'
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 }
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 }
73bc17de6ff2 Added store, view and model for kommentare. Load kommentare when opening a probe.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 });

http://lada.wald.intevation.org