Mercurial > lada > lada-client
diff app/view/window/About.js @ 801:646779690e20
moved code to request the server version to app.js
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Fri, 22 May 2015 12:34:14 +0200 |
parents | 4b9b1d3ad9f1 |
children | c6e9bcda69b8 |
line wrap: on
line diff
--- a/app/view/window/About.js Thu May 21 17:59:48 2015 +0200 +++ b/app/view/window/About.js Fri May 22 12:34:14 2015 +0200 @@ -93,33 +93,24 @@ width: '95%', marginBottom: '5px' }, - text: this.requestServerVersion() + text: Lada.serverversion + }, { + xtype: 'text', + style: { + width: '95%', + marginBottom: '5px' + }, + text: i18n.getMsg('about.window.text.clientversion') + }, { + xtype: 'text', + style: { + width: '95%', + marginBottom: '5px' + }, + text: Lada.clientversion }] }]; this.callParent(arguments); - }, - - requestServerVersion: function() { - var i18n = Lada.getApplication().bundle; - Ext.Ajax.request({ - url: '/lada-server/version', - method: 'GET', - headers: { - 'X-OPENID-PARAMS': Lada.openIDParams - }, - success: function(response) { - var json = Ext.decode(response.responseText); - // TODO - console.log(json); - return json.data; - }, - failure: function(response) { - console.log('Error in Retrieving the Server Version.' - + ' It might be lower than 2.0-beta2' - + ' Or something is broken...'); - return i18n.getMsg('err.msg.generic.body'); - } - }); } });