diff 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
line wrap: on
line diff
--- a/app.js	Fri May 22 13:16:48 2015 +0200
+++ b/app.js	Fri May 22 14:35:18 2015 +0200
@@ -61,7 +61,8 @@
         Lada.userroles = '';
         Lada.logintime = '';
         Lada.mst = [];
-        Lada.clientversion = '2.0beta2';
+        Lada.clientVersion = '2.0-beta2';
+        Lada.serverVersion = '';
 
         var queryString = document.location.href.split('?')[1];
         if (queryString) {
@@ -174,13 +175,13 @@
             },
             success: function(response) {
                 var json = Ext.decode(response.responseText);
-                return json.data;
+                Lada.serverVersion = 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.title');
+                Lada.serverVersion = i18n.getMsg('err.msg.generic.title');
             }
         });
     },

http://lada.wald.intevation.org