Mercurial > lada > lada-client
comparison app.js @ 809:3bc19188fc3a
Added some todos, Enhanced Proge-Generation Success Msg.
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Fri, 22 May 2015 16:14:14 +0200 |
parents | c6e9bcda69b8 |
children | 42f7475f3b7d |
comparison
equal
deleted
inserted
replaced
808:c135201940ee | 809:3bc19188fc3a |
---|---|
105 Ext.MessageBox.alert('Kommunikation mit dem Lada Server fehlgeschlagen', | 105 Ext.MessageBox.alert('Kommunikation mit dem Lada Server fehlgeschlagen', |
106 'Es konnte keine erfolgreiche Verbindung zum lada server aufgebaut werden.'); | 106 'Es konnte keine erfolgreiche Verbindung zum lada server aufgebaut werden.'); |
107 }, | 107 }, |
108 | 108 |
109 onLoginSuccess: function(response) { | 109 onLoginSuccess: function(response) { |
110 Lada.serverversion = this.getServerVersion(); | |
111 | 110 |
112 if (!Ext.isIE9m) { | 111 if (!Ext.isIE9m) { |
113 /* Strip out the openid query params to look nicers. */ | 112 /* Strip out the openid query params to look nicers. */ |
114 // Not supported in old IE's | 113 // Not supported in old IE's |
115 window.history.pushState(this.name, this.name, window.location.pathname); | 114 window.history.pushState(this.name, this.name, window.location.pathname); |
121 var json = Ext.decode(response.responseText); | 120 var json = Ext.decode(response.responseText); |
122 Lada.username = json.data.username; | 121 Lada.username = json.data.username; |
123 Lada.userroles = json.data.roles; | 122 Lada.userroles = json.data.roles; |
124 Lada.logintime = json.data.servertime; | 123 Lada.logintime = json.data.servertime; |
125 Lada.mst = json.data.mst; //Store Messstellen this user may select | 124 Lada.mst = json.data.mst; //Store Messstellen this user may select |
125 //Lada.serverVersion | |
126 this.getServerVersion(); | |
126 | 127 |
127 Ext.create('Lada.store.Datenbasis', { | 128 Ext.create('Lada.store.Datenbasis', { |
128 storeId: 'datenbasis' | 129 storeId: 'datenbasis' |
129 }); | 130 }); |
130 Ext.create('Lada.store.Messeinheiten', { | 131 Ext.create('Lada.store.Messeinheiten', { |