view 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
line wrap: on
line source
Ext.define('Lada.model.Kommentar', {
    extend: 'Ext.data.Model',
    fields: [
        {name: "id"},
        {name: "probeId"},
        {name: "erzeuger"},
        {name: "kdatum"},
        {name: "ktext"}
    ],
    proxy: {
        type: 'rest',
        appendId: true, //default
        url: 'server/rest/kommentare',
        api: {
        },
        reader: {
            type: 'json'
        }
    }
});

http://lada.wald.intevation.org