Mercurial > lada > lada-client
comparison app/model/Query.js @ 248:d40a552382a3
Changed proxy to load data from the server.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 24 Jul 2013 14:52:10 +0200 |
parents | 7097182150d9 |
children | 5e4d926d7717 |
comparison
equal
deleted
inserted
replaced
247:fa108c53da5a | 248:d40a552382a3 |
---|---|
3 fields: [ | 3 fields: [ |
4 {name: "id"}, | 4 {name: "id"}, |
5 {name: "name"}, | 5 {name: "name"}, |
6 {name: "description"}, | 6 {name: "description"}, |
7 {name: "sql"}, | 7 {name: "sql"}, |
8 {name: "fields"}, | 8 {name: "results"}, |
9 {name: "filters"}, | 9 {name: "filters"}, |
10 ], | 10 ], |
11 proxy: { | 11 proxy: { |
12 type: 'memory', | 12 type: 'rest', |
13 url: 'server/rest/query', | |
13 reader: { | 14 reader: { |
14 type: 'json' | 15 type: 'json', |
16 root: 'data' | |
15 } | 17 } |
16 } | 18 } |
17 }); | 19 }); |