DjangoBB

Django based forum engine

  • You are not logged in.
  • Root
  • » Bugs
  • » Page scrolling when toggle shoutbox [RSS Feed]

#1 Oct. 21, 2011 06:22:30

matimatik
Registered: 2011-10-21
Posts: 1
Reputation: +  0  -
Profile   Send e-mail  

Page scrolling when toggle shoutbox

This patch will save page scrolling state:

diff -r 4d897972bfeb djangobb/djangobb_forum/templates/forum/index.html
--- a/djangobb/djangobb_forum/templates/forum/index.html Tue Jul 05 16:37:00 2011 +0300
+++ b/djangobb/djangobb_forum/templates/forum/index.html Fri Oct 21 06:13:38 2011 +0300
@@ -16,7 +16,8 @@
}
}
$(document).ready(function(){
- $("a.toggle").click(function(){
+ $("a.toggle").click(function(e){
+ e.preventDefault();
header_id = $(this).parent().attr('id');
body_id = header_id.replace("head", "body");
item_id = '#' + body_id

(I can't make pull request on bitbucket because of unknown problem with subrepo)

Offline

  • Root
  • » Bugs
  • » Page scrolling when toggle shoutbox[RSS Feed]

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version