[CLEANUP] Backend: Remove IE7/6/5 support 61/31761/4
authorBenjamin Mack <benni@b13.de>
Thu, 24 Jul 2014 13:46:13 +0000 (15:46 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 24 Jul 2014 15:24:16 +0000 (17:24 +0200)
There are some places where there is special treatment for IE7
and below which can now be removed safely.

Resolves: #60528
Releases: 6.3
Change-Id: Ic942a499d1663672a6ac80966621010705e755be
Reviewed-on: http://review.typo3.org/31761
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Controller/BackendController.php
typo3/sysext/backend/Classes/Form/Element/InlineElement.php
typo3/sysext/backend/Classes/Template/DocumentTemplate.php
typo3/sysext/backend/Resources/Public/JavaScript/clickmenu.js
typo3/sysext/backend/Resources/Public/JavaScript/iecompatibility.js [deleted file]

index 91e9378..e36084d 100644 (file)
@@ -99,7 +99,6 @@ class BackendController {
                        'md5' => 'sysext/backend/Resources/Public/JavaScript/md5.js',
                        'toolbarmanager' => 'sysext/backend/Resources/Public/JavaScript/toolbarmanager.js',
                        'modulemenu' => 'sysext/backend/Resources/Public/JavaScript/modulemenu.js',
-                       'iecompatibility' => 'sysext/backend/Resources/Public/JavaScript/iecompatibility.js',
                        'evalfield' => 'sysext/backend/Resources/Public/JavaScript/jsfunc.evalfield.js',
                        'flashmessages' => 'sysext/backend/Resources/Public/JavaScript/flashmessages.js',
                        'tabclosemenu' => 'js/extjs/ux/ext.ux.tabclosemenu.js',
index e49ce28..ebccab9 100644 (file)
@@ -455,8 +455,7 @@ class InlineElement {
                        $header .= $this->renderForeignRecordHeader($parentUid, $foreign_table, $rec, $config, $isVirtualRecord);
                        $out = '<div class="t3-form-field-header-inline" id="' . $objectId . '_header">' . $header . '</div>' . $out;
                        // Wrap the header, fields and combination part of a child record with a div container
-                       $classMSIE = $this->fObj->clientInfo['BROWSER'] == 'msie' && $this->fObj->clientInfo['VERSION'] < 8 ? 'MSIE' : '';
-                       $class .= ' inlineDiv' . $classMSIE . ($isNewRecord ? ' inlineIsNewRecord' : '');
+                       $class .= ' inlineDiv' . ($isNewRecord ? ' inlineIsNewRecord' : '');
                        $out = '<div id="' . $objectId . '_div" class="t3-form-field-container-inline ' . trim($class) . '">' . $out . '</div>';
                }
                // Remove the current level also from the dynNestedStack of TCEforms:
index 4fd9e8c..4bd4e69 100644 (file)
@@ -1859,9 +1859,6 @@ function jumpToUrl(URL) {
         * @return void
         */
        public function setModuleTemplate($filename) {
-               // Load Prototype lib for IE event
-               $this->pageRenderer->loadPrototype();
-               $this->loadJavascriptLib('sysext/backend/Resources/Public/JavaScript/iecompatibility.js');
                $this->moduleTemplate = $this->getHtmlTemplate($filename);
        }
 
index fd6343c..f374095 100644 (file)
@@ -132,9 +132,6 @@ var Clickmenu = {
                        obj.style.top  = y + 'px';
                        Element.show(obj);
                }
-               if (/MSIE5/.test(navigator.userAgent)) {
-                       this._toggleSelectorBoxes('hidden');
-               }
        },
 
 
@@ -164,9 +161,6 @@ var Clickmenu = {
                obj = $(obj);
                if (obj && Element.visible(obj) && !Position.within(obj, this.mousePos.X, this.mousePos.Y)) {
                        this.hide(obj);
-                       if (/MSIE5/.test(navigator.userAgent) && obj.id === 'contentMenu0') {
-                               this._toggleSelectorBoxes('visible');
-                       }
                } else if (obj && Element.visible(obj)) {
                        this.delayClickMenuHide = true;
                }
diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/iecompatibility.js b/typo3/sysext/backend/Resources/Public/JavaScript/iecompatibility.js
deleted file mode 100644 (file)
index 1322f46..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-
-Element.addMethods({
-       pngHack: function(element) {
-               element = $(element);
-               var transparentGifPath = 'clear.gif';
-
-                       // If there is valid element, it is an image and the image file ends with png:
-               if (Object.isElement(element) && element.tagName === 'IMG' && element.src.endsWith('.png')) {
-                       var alphaImgSrc = element.src;
-                       var sizingMethod = 'scale';
-                       element.src = transparentGifPath;
-               }
-
-               if (alphaImgSrc) {
-                       element.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="#{alphaImgSrc}",sizingMethod="#{sizingMethod}")'.interpolate(
-                       {
-                               alphaImgSrc: alphaImgSrc,
-                               sizingMethod: sizingMethod
-                       });
-               }
-
-               return element;
-       }
-});
-
-var IECompatibility = Class.create({
-
-       /**
-        * initializes the compatibility class
-        */
-       initialize: function() {
-               Event.observe(document, 'dom:loaded', function() {
-                       $$('input[type="checkbox"]').invoke('addClassName', 'checkbox');
-               }.bind(this));
-
-               Event.observe(window, 'load', function() {
-                       if (Prototype.Browser.IE) {
-                               var version = parseFloat(navigator.appVersion.split(';')[1].strip().split(' ')[1]);
-                               if (version === 6) {
-                                       $$('img').each(function(img) {
-                                               img.pngHack();
-                                       });
-                                       $$('#typo3-menu li ul li').each(function(li) {
-                                               li.setStyle({height: '21px'});
-                                       });
-                               }
-                       }
-               });
-       }
-});
-
-if (Prototype.Browser.IE) {
-       var TYPO3IECompatibilty = new IECompatibility();
-}