Scroll only when you're supposed to.

This commit is contained in:
Nicolas Stepien 2011-08-01 06:38:19 +02:00
parent c9c24fbdbe
commit 7d4fda2f56
2 changed files with 2 additions and 2 deletions

View File

@ -2731,7 +2731,7 @@
$.bind(form, 'submit', qr.submit); $.bind(form, 'submit', qr.submit);
} }
threading.init(); threading.init();
if ((id = location.hash.slice(1)) && !$.id(id)) { if ((id = location.hash.slice(1)) && !$.id(id) && !/\D/.test(id)) {
scrollTo(0, d.body.scrollHeight); scrollTo(0, d.body.scrollHeight);
} }
if (conf['Auto Noko']) { if (conf['Auto Noko']) {

View File

@ -2117,7 +2117,7 @@ main =
# scroll to bottom if post isn't found # scroll to bottom if post isn't found
# thumbnail generation takes time # thumbnail generation takes time
if (id = location.hash[1..]) and !$.id id if (id = location.hash[1..]) and !$.id(id) and !/\D/.test id
scrollTo 0, d.body.scrollHeight scrollTo 0, d.body.scrollHeight
if conf['Auto Noko'] if conf['Auto Noko']