Mercurial > lada > lada-client
changeset 24:72778ac34dbb
Do not autoload the data from the server. Only load an request.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 07 May 2013 17:20:11 +0200 |
parents | dca4813dd502 |
children | f964a50bfe57 |
files | app.js app/store/Proben.js |
diffstat | 2 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/app.js Tue May 07 17:19:28 2013 +0200 +++ b/app.js Tue May 07 17:20:11 2013 +0200 @@ -17,7 +17,6 @@ xtype: 'panel', id: 'searchSelection', border: false, - padding: '10 10 10 10', items: [ // 1. SQL-Selection // 1.1 Just a small texttual field @@ -37,7 +36,6 @@ id: 'searchVariables', hidden: true, border: false, - padding: '10 10 10 10', items: [ // 2. Variable-Definition. Depending on the SQL-Selection we // need to show a small form to be able to diefine some values @@ -56,7 +54,6 @@ xtype: 'probenlist', id: 'searchResult', hidden: true, - padding: '10 10 10 10' } ] });
--- a/app/store/Proben.js Tue May 07 17:19:28 2013 +0200 +++ b/app/store/Proben.js Tue May 07 17:20:11 2013 +0200 @@ -1,13 +1,10 @@ Ext.define('Lada.store.Proben', { extend: 'Ext.data.Store', model: 'Lada.model.Probe', - autoLoad: true, proxy: { type: 'ajax', api: { - read: 'server/rest/proben', - //read: 'data/proben.json', - update: 'data/proben2.json' + read: 'server/rest/proben' }, reader: { type: 'json', @@ -15,4 +12,3 @@ } } }); -