[BUGFIX] Add missing implementation of refresh methods 62/50362/3
authorFrank Naegler <frank.naegler@typo3.org>
Tue, 25 Oct 2016 10:44:41 +0000 (12:44 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 25 Oct 2016 12:13:31 +0000 (14:13 +0200)
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 <no-reply@typo3.com>
Reviewed-by: Marco Bresch <marco.bresch@starfinanz.de>
Tested-by: Marco Bresch <marco.bresch@starfinanz.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/backend/Resources/Public/JavaScript/Viewport.js

index 59e92cb..797f465 100644 (file)
@@ -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) {