Fixed bug #17431: "Show Page" in contextmenu results in new browser window (Thanks...
authorsgalinsk <sgalinsk@709f56b5-9817-0410-a4d7-c38de5d9e867>
Thu, 24 Feb 2011 23:40:29 +0000 (23:40 +0000)
committersgalinsk <sgalinsk@709f56b5-9817-0410-a4d7-c38de5d9e867>
Thu, 24 Feb 2011 23:40:29 +0000 (23:40 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10633 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/js/extjs/components/pagetree/javascript/actions.js

index 058cfd7..029061d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-25  Stefan Galinski  <stefan.galinski@gmail.com>
+
+       * Fixed bug #17431: "Show Page" in contextmenu results in new browser window (Thanks to Simon Schaufelberger)
+
 2011-02-24  Steffen Kamper  <steffen@typo3.org>
 
        * Fixed bug #16788: Flexform inputfields remain empty (Thanks to Andreas Kiessling)
index ed7bdcb..7f47568 100644 (file)
@@ -269,10 +269,12 @@ TYPO3.Components.PageTree.Actions = {
         * @return {void}
         */
        viewPage: function(node) {
+               var frontendWindow = window.open('', 'newTYPO3frontendWindow');
                TYPO3.Components.PageTree.Commands.getViewLink(
                        node.attributes.nodeData,
                        function(result) {
-                               openUrlInWindow(result, 'typo3ContextMenuView');
+                               frontendWindow.location = result;
+                               frontendWindow.focus();
                        }
                );
        },