Mercurial > lada > lada-client
comparison app/model/Kommentar.js @ 53:73bc17de6ff2
Added store, view and model for kommentare. Load kommentare when opening a probe.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 28 May 2013 10:58:47 +0200 |
parents | |
children | 982f3130e7f3 |
comparison
equal
deleted
inserted
replaced
52:af418743e1f4 | 53:73bc17de6ff2 |
---|---|
1 Ext.define('Lada.model.Kommentar', { | |
2 extend: 'Ext.data.Model', | |
3 fields: [ | |
4 {name: "id"}, | |
5 {name: "probeId"}, | |
6 {name: "erzeuger"}, | |
7 {name: "kdatum"}, | |
8 {name: "ktext"} | |
9 ], | |
10 proxy: { | |
11 type: 'rest', | |
12 appendId: true, //default | |
13 url: 'server/rest/kommentare', | |
14 api: { | |
15 }, | |
16 reader: { | |
17 type: 'json' | |
18 } | |
19 } | |
20 }); |