comparison app/model/KommentarP.js @ 491:850ccfe5f3c4

Code style.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 23:23:32 +0100
parents f7446ebfe5d0
children
comparison
equal deleted inserted replaced
490:446e99cfd425 491:850ccfe5f3c4
9 /** 9 /**
10 * Model class for Kommentare 10 * Model class for Kommentare
11 */ 11 */
12 Ext.define('Lada.model.KommentarP', { 12 Ext.define('Lada.model.KommentarP', {
13 extend: 'Lada.model.Base', 13 extend: 'Lada.model.Base',
14 fields: [ 14
15 {name: "id"}, 15 fields: [{
16 {name: "probeId"}, 16 name: "id"
17 {name: "erzeuger"}, 17 }, {
18 {name: "datum", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}, 18 name: "probeId"
19 {name: "text"} 19 }, {
20 ], 20 name: "erzeuger"
21 }, {
22 name: "datum",
23 type: 'date',
24 convert: Lada.lib.Helpers.ts2date,
25 defaultValue: new Date()
26 }, {
27 name: "text"
28 }],
29
21 idProperty: "id", 30 idProperty: "id",
31
22 proxy: { 32 proxy: {
23 type: 'rest', 33 type: 'rest',
24 appendId: true, //default 34 appendId: true, //default
25 url: 'server/rest/kommentar_p', 35 url: 'server/rest/kommentar_p',
26 reader: { 36 reader: {

http://lada.wald.intevation.org