[TYPO3-dev] A small frontend editing issue (Small and Simple Solution)
tapio
tapio.markula at dnainternet.net
Sat Jan 7 10:29:22 CET 2006
Martin Klaus wrote:
> Hi Martin, Hi Tapio,
>
> "Martin Kutschker" <Martin.Kutschker at n0spam-blackbox.net> schrieb im
> Newsbeitrag
> news:mailman.1.1136449649.27979.typo3-dev at lists.netfielders.de...
>
>>tapio schrieb:
>>
>>>Hi
>>>
>>>When you set the frontend editing opening
>>>into a pop-up-window Typo3 when closing the
>>>window by using the button *'Save and close'*
>>>it would be nice to get the actual page reloaded.
>>>
>>>Well this would need some JavaScript,
>>>which I could add to my extension (and someone
>>>in some situation also to the core).
>>>
>>>Is there any common name, which could tell
>>>JavaScript, what is the name of the window,
>>>which opens the pop-up-window?
>>
>>window.opener is a reference to the window object that opened the current
>>window.
>>
>>window.name
>>window.opener.location.reload(true)
>>
>>Masi
>
>
> a small and simple solution for this issue:
> (see: http://bugs.typo3.org/view.php?id=1149)
>
> I added "window.opener.location.reload(true);" to file typo3/close.html
> which is called from alt_doc.php if you press the "close" or
> "save_and_close" button:
>
> The reloading of the frontend page should to be done in close.html, to be
> sure that the database update has been finished.
>
> ----- snippet begin (typo3/close.php) -----
>
> <script type="text/javascript">
> /*<![CDATA[*/
> window.opener.location.reload(true);
> self.close();
> /*]]>*/
> </script>
>
> ----- snippet end -----
>
>
>
Ok. Thank's. That really helped - endeed the order of those function
should change (you wrote about it in the bug report).
I might put this fix to res folder of 'tm_contentaccess'.
More information about the TYPO3-dev
mailing list