Permalink
Browse files

more details, auto scrolling now a little bit more precise

  • Loading branch information...
1 parent 67339b9 commit 97cc3a0408f72b69c09de4160d71122c1afc56f7 @DFectuoso DFectuoso committed Aug 4, 2010
Showing with 4 additions and 3 deletions.
  1. +1 −1 main.py
  2. +3 −2 templates/main.html
View
@@ -16,7 +16,7 @@
#CONSTANTS#
-UPDATES_LIMIT = 100
+UPDATES_LIMIT = 5
DOMAIN = "@gmail.com"
SENDER_MAIL = "HD-Logs <santiago1717@gmail.com>"
View
@@ -33,7 +33,7 @@
{% endfor %}
</div>
<form class="comment-form" action="/comment/{{update.key.id}}" method="post" id="comment-form-{{update.key.id}}" style="display: none;">
- <textarea name="body"></textarea>
+ <textarea class="comment-form-textarea" id="comment-form-textarea-{{update.key.id}}" name="body"></textarea>
<div class="comment-form-controls">
<input type="submit" value="Comment" />
<button type="button" class="comment-link-cancel" onclick="toggleComment({{update.key.id}})">Cancel</button>
@@ -65,7 +65,7 @@
} else {
$('#comment-form-'+id).css('display', 'inline');
$('#comment-link-'+id).css('display', 'none');
- $.scrollTo('#comment-form-'+id);
+ $.scrollTo('#comment-form-textarea-'+id);
}
}
@@ -87,6 +87,7 @@
$(".update-image-avatar",newNode)[0].src = update.image_url;
$(".comment-link",newNode)[0].onclick = function(){toggleComment(update.id)};
$(".comment-link",newNode)[0].id = "comment-link-" + update.id;
+ $(".comment-form-textarea",newNode)[0].id = "comment-form-textarea-" + update.id;
$(".comment-form",newNode)[0].action = "/comment/" + update.id;
$(".comment-form",newNode)[0].id ="comment-form-" + update.id;
$(".comment-link-cancel",newNode)[0].onclick = function(){toggleComment(update.id)};

0 comments on commit 97cc3a0

Please sign in to comment.