comparison app.js @ 798:ff4330d4aba1

Filter Messtellen in Probeform and Messprogramm
author Dustin Demuth <dustin@intevation.de>
date Thu, 21 May 2015 15:23:49 +0200
parents b2fcbdc4969d
children 646779690e20
comparison
equal deleted inserted replaced
797:b8fd43021c29 798:ff4330d4aba1
58 // Start the application. 58 // Start the application.
59 launch: function() { 59 launch: function() {
60 Lada.username = ''; 60 Lada.username = '';
61 Lada.userroles = ''; 61 Lada.userroles = '';
62 Lada.logintime = ''; 62 Lada.logintime = '';
63 Lada.mst = [];
63 64
64 var queryString = document.location.href.split('?')[1]; 65 var queryString = document.location.href.split('?')[1];
65 if (queryString) { 66 if (queryString) {
66 Lada.openIDParams = queryString; 67 Lada.openIDParams = queryString;
67 } 68 }
116 /* Parse Username and Timestamp */ 117 /* Parse Username and Timestamp */
117 var json = Ext.decode(response.responseText); 118 var json = Ext.decode(response.responseText);
118 Lada.username = json.data.username; 119 Lada.username = json.data.username;
119 Lada.userroles = json.data.roles; 120 Lada.userroles = json.data.roles;
120 Lada.logintime = json.data.servertime; 121 Lada.logintime = json.data.servertime;
122 Lada.mst = json.data.mst; //Store Messstellen this user may select
121 123
122 Ext.create('Lada.store.Datenbasis', { 124 Ext.create('Lada.store.Datenbasis', {
123 storeId: 'datenbasis' 125 storeId: 'datenbasis'
124 }); 126 });
125 Ext.create('Lada.store.Messeinheiten', { 127 Ext.create('Lada.store.Messeinheiten', {

http://lada.wald.intevation.org