diff 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
line wrap: on
line diff
--- a/app.js	Wed Apr 15 12:13:57 2015 +0200
+++ b/app.js	Wed Apr 15 16:20:44 2015 +0200
@@ -103,8 +103,12 @@
     },
 
     onLoginSuccess: function(response) {
-        /* Strip out the openid query params to look nicers. */
-        window.history.pushState(this.name, this.name, window.location.pathname);
+
+        if (!Ext.isIE9m) {
+          /* Strip out the openid query params to look nicers. */
+          // Not supported in old IE's
+          window.history.pushState(this.name, this.name, window.location.pathname);
+        }
 
         Ext.create('Lada.view.Viewport');
 

http://lada.wald.intevation.org