[TYPO3-core] RFC #4885: AJAX pagetree update could be used when a new page is created
Benjamin Mack
mack at xnos.org
Sun Feb 3 14:15:45 CET 2008
Hey guys,
this is a SVN patch request.
Branches: trunk only
BT reference: http://bugs.typo3.org/view.php?id=4885
Problem:
When a new page is created, the page tree is triggered to be refreshed
by a javascript call: top.content.nav_frame.refresh_nav(). This
behaviour could also be achieved by the new AJAX pagetree. To speed up
reloading, only the updated branch of the tree has to be loaded.
Solution:
I first made the BEfunc getSetUpdateSignal so it could take additional
parameters (here: the branch of the tree). Also, I didn't like the
coding design that one function does both setting the update signal and
retreiving the JS code for that. So I split that while keeping backwards
compatibility.
Then I needed to fix the AJAX-call through using a absolute path for the
ajax.php in the. I also added the new function "refreshBranch" which
takes a list of pages to refresh. It takes the same AJAX call as with
the expand / collapse code.
Additionally I implemented the first improvement when editing page
properties. Try it out: Edit a page record and e.g. change the title. It
will refresh only the branch.
--
greetings,
benni.
-SDG-
www.xnos.de // www.xnos.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20080203_ajax_updatesignal.patch
Type: text/x-diff
Size: 6939 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080203/4e139f8e/attachment-0001.patch
More information about the TYPO3-team-core
mailing list