Topic: afKeepScroll
Update
-----------------------------------------------
supports 0.7.2 -> download link: afkpscroll.7z
-----------------------------------------------
Repository link updated too.
Old post
Due to the conversation in the Auto scroll down to last position post I decided to try and help a little.
This script it's meant to keep the scroll position of the textareas (not the page) found in page_parts, snippets, layouts and file editing pages. It's not the same script as the one posted as a temporal solution in that topic, this was built from scratch.
Keeps the scroll value only if you click the Save and Apply button by creating a cookie with the current textarea id and if any, the scroll value.
If you click any of the Main links buttons (Pages, Snippet, Layouts, Files, Users, Administration tabs) or the Save button the cookie(s) gets deleted.
It may not be compatible with any code syntax highlighter(creates iframe), but works with markdown and textile filter. If you're using sartas resizer plugin, then this one looses its meaning.
Drag the folder found in the zip file to your plugins folder and enable it through the Administration.
Tested in Firefox, Chrome, Opera, Safari and IE7(though it may not work correctly in ie).
Any input, complaint or anything else, please do it in this post.
Thanks to David for all his help.
Last edited by andrewmman (2011-01-06 22:50)

