From 145eb8c719091bad66d2df791b2557fb562a1c9c Mon Sep 17 00:00:00 2001 From: Frank Naegler Date: Tue, 25 Oct 2016 12:44:41 +0200 Subject: [PATCH] [BUGFIX] Add missing implementation of refresh methods This patch implements the missing refresh methods in the Viewport.js. Workspaces need this method to refresh the content frame on switching the workspace in the top menu. Both methods now reload the according frames. Resolves: #78421 Releases: master Change-Id: I1266c873d00e7a811e23c36bc4be5c36b7899797 Reviewed-on: https://review.typo3.org/50362 Tested-by: TYPO3com Reviewed-by: Marco Bresch Tested-by: Marco Bresch Reviewed-by: Wouter Wolters Reviewed-by: Anja Leichsenring Tested-by: Anja Leichsenring --- typo3/sysext/backend/Resources/Public/JavaScript/Viewport.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/Viewport.js b/typo3/sysext/backend/Resources/Public/JavaScript/Viewport.js index 59e92cb03c75..797f4653ae9c 100644 --- a/typo3/sysext/backend/Resources/Public/JavaScript/Viewport.js +++ b/typo3/sysext/backend/Resources/Public/JavaScript/Viewport.js @@ -89,7 +89,7 @@ define( return $('.t3js-scaffold-content-navigation-iframe').attr('src'); }, refresh: function() { - // refresh navi + $('.t3js-scaffold-content-navigation-iframe')[0].contentWindow.location.reload(); }, calculateScrollbar: function (){ TYPO3.Backend.NavigationContainer.cleanup(); @@ -133,7 +133,7 @@ define( return $('.t3js-scaffold-content-module-iframe').attr('src'); }, refresh: function() { - // refresh content + $('.t3js-scaffold-content-module-iframe')[0].contentWindow.location.reload(); }, getIdFromUrl: function() { if(this.getUrl) { -- 2.20.1