Posts: 2,894
Threads: 59
Joined: Jun 2010
I have added some code to the project page which automatically scrolls down to the form in a very smooth way when clicking any of the reply links.
Test it out and let me know what you think:
http://www.commentics.org/project.php
Have
you completed
the interview?
Posts: 535
Threads: 31
Joined: Jul 2010
That's really nice! I'd make it so that it doesn't have to append #form at the end of the url, but that's just me. Also, it doesn't seem to scroll sideways. I doubt anyone needs that though.
I'm giving you three guesses...
Posts: 2,894
Threads: 59
Joined: Jun 2010
I like it as well - it gives the user more of a sense as to what has happened.
Another drawback however is that the script applies it to every anchor link on the page which in some cases may be undesired. I'm sure there's an easy way to make it only work for the reply link so I will look into that before adding it to Commentics.
Do you think there should be an admin switch to turn it off?
Have
you completed
the interview?
Posts: 535
Threads: 31
Joined: Jul 2010
I suppose. How would this work out as an add-on? It seems to be run exclusively on JS if I'm not mistaken.
I'm giving you three guesses...
Posts: 2,894
Threads: 59
Joined: Jun 2010
Yeah it's all JS. I have adapted it now to only work for the reply links. Also, there is a switch in Layout -> Comments -> General to turn it on and off.
Have
you completed
the interview?