Mercurial > lada > lada-client
comparison app.js @ 999:f73ca04d73a7 stammdatengrids
Refactored Server URL
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Wed, 13 Jan 2016 14:50:28 +0100 |
parents | b21421ba6917 |
children | 9ac03f461ab4 |
comparison
equal
deleted
inserted
replaced
984:b21421ba6917 | 999:f73ca04d73a7 |
---|---|
69 var queryString = document.location.href.split('?')[1]; | 69 var queryString = document.location.href.split('?')[1]; |
70 if (queryString) { | 70 if (queryString) { |
71 Lada.openIDParams = queryString; | 71 Lada.openIDParams = queryString; |
72 } | 72 } |
73 Ext.Ajax.request({ | 73 Ext.Ajax.request({ |
74 url: 'lada-server/user', | 74 url: 'lada-server/rest/user', |
75 method: 'GET', | 75 method: 'GET', |
76 scope: this, | 76 scope: this, |
77 success: this.onLoginSuccess, | 77 success: this.onLoginSuccess, |
78 failure: this.onLoginFailure | 78 failure: this.onLoginFailure |
79 }); | 79 }); |
177 }, | 177 }, |
178 | 178 |
179 getServerVersion: function() { | 179 getServerVersion: function() { |
180 var i18n = Lada.getApplication().bundle; | 180 var i18n = Lada.getApplication().bundle; |
181 Ext.Ajax.request({ | 181 Ext.Ajax.request({ |
182 url: 'lada-server/version', | 182 url: 'lada-server/rest/version', |
183 method: 'GET', | 183 method: 'GET', |
184 headers: { | 184 headers: { |
185 'X-OPENID-PARAMS': Lada.openIDParams | 185 'X-OPENID-PARAMS': Lada.openIDParams |
186 }, | 186 }, |
187 success: function(response) { | 187 success: function(response) { |