scroll to bottom if post isn't found. fixes #202

This commit is contained in:
James Campos 2011-07-31 16:36:27 -07:00
parent 0775acbba3
commit 6bd2353d1d
2 changed files with 6 additions and 0 deletions

View File

@ -2716,6 +2716,9 @@
Recaptcha.init();
$.bind(form, 'submit', qr.submit);
}
if ((id = location.hash.slice(1)) && !$.id(id)) {
scrollTo(0, d.body.scrollHeight);
}
threading.init();
if (conf['Auto Noko']) {
$('.postarea form').action += '?noko';

View File

@ -2106,6 +2106,9 @@ main =
Recaptcha.init()
$.bind form, 'submit', qr.submit
if (id = location.hash[1..]) and !$.id id
scrollTo 0, d.body.scrollHeight
#major features
threading.init()