comparison app.js @ 805:c6e9bcda69b8

About Window
author Dustin Demuth <dustin@intevation.de>
date Fri, 22 May 2015 14:35:18 +0200
parents 646779690e20
children 3bc19188fc3a
comparison
equal deleted inserted replaced
804:0840c4cf2273 805:c6e9bcda69b8
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 Lada.mst = [];
64 Lada.clientversion = '2.0beta2'; 64 Lada.clientVersion = '2.0-beta2';
65 Lada.serverVersion = '';
65 66
66 var queryString = document.location.href.split('?')[1]; 67 var queryString = document.location.href.split('?')[1];
67 if (queryString) { 68 if (queryString) {
68 Lada.openIDParams = queryString; 69 Lada.openIDParams = queryString;
69 } 70 }
172 headers: { 173 headers: {
173 'X-OPENID-PARAMS': Lada.openIDParams 174 'X-OPENID-PARAMS': Lada.openIDParams
174 }, 175 },
175 success: function(response) { 176 success: function(response) {
176 var json = Ext.decode(response.responseText); 177 var json = Ext.decode(response.responseText);
177 return json.data; 178 Lada.serverVersion = json.data;
178 }, 179 },
179 failure: function(response) { 180 failure: function(response) {
180 console.log('Error in retrieving the server version.' 181 console.log('Error in retrieving the server version.'
181 + ' It might be lower than 2.0-beta2' 182 + ' It might be lower than 2.0-beta2'
182 + ' Or something is broken...'); 183 + ' Or something is broken...');
183 return i18n.getMsg('err.msg.generic.title'); 184 Lada.serverVersion = i18n.getMsg('err.msg.generic.title');
184 } 185 }
185 }); 186 });
186 }, 187 },
187 188
188 // Define the controllers of the application. They will be initialized 189 // Define the controllers of the application. They will be initialized

http://lada.wald.intevation.org