scrollTo behaviour

This commit is contained in:
Sanj 2012-01-18 15:55:55 +05:30
parent 513103169e
commit 1794d95315
2 changed files with 3 additions and 2 deletions

View File

@ -65,7 +65,7 @@ function postLoadQuery() {
if (queryData.hasOwnProperty("goto")) {
var locationHash = queryData['goto'];
var scrollTop = $('a[name=' + locationHash + ']').position().top;
$(document).scrollTop(scrollTop + 400); //FIXME!!
$(window).scrollTop(scrollTop); //FIXME!!
delete queryData['goto'];
}
/*

View File

@ -111,7 +111,7 @@ association of theatre people coming together in the larger interests of theatre
<div id="commentWrapper">
{% load comments %}
<h3>Comments and Feedback</h3>
<a name="comments"></a>
{% get_comment_list for issue as comment_list %}
{% ifnotequal comment_list|length 0 %}
@ -133,6 +133,7 @@ association of theatre people coming together in the larger interests of theatre
{% get_comment_form for issue as form %}
<div id="comment_form">
<a name="comments"></a>
<h4 class="formHeader">
Leave a Response:
</h4>