diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/model/Kommentar.js	Tue May 28 10:58:47 2013 +0200
@@ -0,0 +1,20 @@
+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