Commit 4e733205 authored by Wouter Wolters's avatar Wouter Wolters
Browse files

[TASK] Delete unused iframepanel JavaScript code

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: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
parent 0c16f811
......@@ -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) . ');
......
/*
* 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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment