Fixed bug #7637: Page tree fails to reload properly if page was manipulated
authorOliver Hader <oliver.hader@typo3.org>
Tue, 26 Feb 2008 11:21:37 +0000 (11:21 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 26 Feb 2008 11:21:37 +0000 (11:21 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3289 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/alt_mod_frameset.php
typo3/js/tree.js

index 6a718b0..46e62f0 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-02-26  Oliver Hader  <oh@inpublica.de>
+
+       * Fixed bug #7637: Page tree fails to reload properly if page was manipulated
+
 2008-02-26  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
        * Added feature #7667: htmlArea RTE: Usability improvements in table operations
index ba14184..e080abf 100755 (executable)
@@ -105,7 +105,7 @@ class SC_alt_mod_frameset {
                        // Navigation frame URL:
                $script = t3lib_div::_GP('script');
                $nav = t3lib_div::_GP('nav');
-               $URL_nav = htmlspecialchars($nav.'?currentSubScript='.rawurlencode($script));
+               $URL_nav = htmlspecialchars($nav.'&currentSubScript='.rawurlencode($script));
 
                        // List frame URL:
                $URL_list = htmlspecialchars($this->exScript?$this->exScript:($script.($this->id?'?id='.rawurlencode($this->id):'')));
index a83d8bc..6f34d4d 100644 (file)
@@ -81,7 +81,8 @@ var Tree = {
        refresh: function() {
                var r = new Date();
                // randNum is useful so pagetree does not get cached in browser cache when refreshing
-               window.location.href = '?randNum=' + r.getTime();
+               var search = window.location.search.replace(/&randNum=\d+/, '');
+               window.location.search = search+'&randNum=' + r.getTime();
        },
 
        // attaches the events to the elements needed for the drag and drop (for the titles and the icons)