[BUGFIX] Enable backend login for Internet Explorer 8 users 29/28929/3
authorNicole Cordes <typo3@cordes.co>
Fri, 28 Mar 2014 11:48:58 +0000 (12:48 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Sun, 30 Mar 2014 13:55:41 +0000 (15:55 +0200)
Due to some mystical IE8 behavior the global TYPO3 object gets reset
if any "var" occurs in Javascript. It is not necessary if its called or
not but it seems IE8 creates a new object. This patch adds the global
initialization of the TYPO3 object by using window[] syntax.

Resolves: #56988
Releases: 6.2
Change-Id: I5ce246790d1e3a1e388f106d085c96dae4e4304e
Reviewed-on: https://review.typo3.org/28929
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/backend/Resources/Public/JavaScript/common.js

index 428a91a..9067cda 100644 (file)
@@ -77,7 +77,10 @@ T3AJAX.showError = function(xhr, json) {
 };
 
 // common storage and global object, could later hold more information about the current user etc.
-var TYPO3 = TYPO3 || {};
+if (typeof TYPO3 === undefined) {
+       // window definition required, otherwise IE8 clears TYPO3 variable completely
+       window['TYPO3'] = {};
+}
 TYPO3 = Ext.apply(TYPO3, {
        // store instances that only should be running once
        _instances: {},