[TASK] Delete unused iframepanel JavaScript code 80/50480/2
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 1 Nov 2016 22:37:05 +0000 (23:37 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 2 Nov 2016 08:49:10 +0000 (09:49 +0100)
Since the new ViewPort setup the iframepanel JavaScript
code is unused. The new ViewPort code marked this code already
as a breaking change.

Resolves: #78536
Releases: master
Change-Id: I651dbcd99af76e20f36e8eb7d0c29cf22ddd304a
Reviewed-on: https://review.typo3.org/50480
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Controller/BackendController.php
typo3/sysext/backend/Resources/Public/JavaScript/iframepanel.js [deleted file]

index 90f541a..f6e5854 100644 (file)
@@ -119,7 +119,6 @@ class BackendController
             'md5' => 'EXT:backend/Resources/Public/JavaScript/md5.js',
             'evalfield' => 'EXT:backend/Resources/Public/JavaScript/jsfunc.evalfield.js',
             'backend' => 'EXT:backend/Resources/Public/JavaScript/backend.js',
-            'iframepanel' => 'EXT:backend/Resources/Public/JavaScript/iframepanel.js',
         ];
         $this->pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/LoginRefresh', 'function(LoginRefresh) {
                        LoginRefresh.setIntervalTime(' . MathUtility::forceIntegerInRange((int)$GLOBALS['TYPO3_CONF_VARS']['BE']['sessionTimeout'] - 60, 60) . ');
diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/iframepanel.js b/typo3/sysext/backend/Resources/Public/JavaScript/iframepanel.js
deleted file mode 100644 (file)
index 4fe35b5..0000000
+++ /dev/null
@@ -1,103 +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!
- */
-
-
-/**
- * iFrame panel
- */
-
-Ext.ns('TYPO3');
-
-TYPO3.iframePanel = Ext.extend(Ext.Panel, {
-       name: 'iframe',
-       iframe: null,
-       src: Ext.isIE && Ext.isSecure ? Ext.SSL_SECURE_URL : 'about:blank',
-       showLoadingIndicator: true,
-
-               // component build
-       initComponent: function() {
-               this.bodyCfg = {
-                       tag: 'iframe',
-                       frameborder: '0',
-                       src: this.src,
-                       name: this.name,
-                       style: 'float:left;' // this is needed to prevent offset of 2.5 pixel, see #15771
-               }
-               TYPO3.iframePanel.superclass.initComponent.apply(this, arguments);
-
-               // apply the addListener patch for 'message:tagging'
-               this.addListener = this.on;
-
-       },
-
-       onRender : function() {
-               TYPO3.iframePanel.superclass.onRender.apply(this, arguments);
-               this.iframe = window.frames[this.name];
-               this.body.dom['onload'] = this.loadHandler.createDelegate(this);
-       },
-
-       loadHandler: function() {
-               this.src = this.body.dom.src;
-               this.finishLoader();
-       },
-
-       getIframe: function() {
-               return this.iframe;
-       },
-       getUrl: function() {
-               return this.body.dom.src;
-       },
-
-       setUrl: function(source) {
-               this.body.dom.src = source;
-               this.startLoader();
-       },
-
-       resetUrl: function() {
-               this.setUrl(this.src);
-       },
-
-       getIdFromUrl: function() {
-               var url = Ext.urlDecode(this.getUrl().split('?')[1]);
-               return url.id;
-       },
-
-       refresh: function() {
-               if (!this.isVisible()) {
-            return;
-        }
-               this.startLoader();
-               this.body.dom.src = this.body.dom.src;
-       },
-
-       /**
-        * wrapper function for nprogress
-        */
-       startLoader: function() {
-               if (this.showLoadingIndicator) {
-                       require(['nprogress'], function(NProgress) {
-                               NProgress.configure({parent: '.t3js-scaffold-content-module', showSpinner: false});
-                               NProgress.start();
-                       });
-               }
-       },
-
-       finishLoader: function() {
-               if (this.showLoadingIndicator) {
-                       require(['nprogress'], function(NProgress) {
-                               NProgress.done();
-                       });
-               }
-       }
-});
-Ext.reg('iframePanel', TYPO3.iframePanel);