Mercurial > lada > lada-client
comparison app.js @ 719:5e91a740aff8
Added a Browser Switch as a function is not available in IE9 and lower
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Wed, 15 Apr 2015 16:20:44 +0200 |
parents | b400629a2575 |
children | 876456ce0a01 |
comparison
equal
deleted
inserted
replaced
718:7f11b75e0188 | 719:5e91a740aff8 |
---|---|
101 Ext.MessageBox.alert('Kommunikation mit dem Lada Server fehlgeschlagen', | 101 Ext.MessageBox.alert('Kommunikation mit dem Lada Server fehlgeschlagen', |
102 'Es konnte keine erfolgreiche Verbindung zum lada server aufgebaut werden.'); | 102 'Es konnte keine erfolgreiche Verbindung zum lada server aufgebaut werden.'); |
103 }, | 103 }, |
104 | 104 |
105 onLoginSuccess: function(response) { | 105 onLoginSuccess: function(response) { |
106 /* Strip out the openid query params to look nicers. */ | 106 |
107 window.history.pushState(this.name, this.name, window.location.pathname); | 107 if (!Ext.isIE9m) { |
108 /* Strip out the openid query params to look nicers. */ | |
109 // Not supported in old IE's | |
110 window.history.pushState(this.name, this.name, window.location.pathname); | |
111 } | |
108 | 112 |
109 Ext.create('Lada.view.Viewport'); | 113 Ext.create('Lada.view.Viewport'); |
110 | 114 |
111 /* Parse Username and Timestamp */ | 115 /* Parse Username and Timestamp */ |
112 var json = Ext.decode(response.responseText); | 116 var json = Ext.decode(response.responseText); |