more scroll checks

This commit is contained in:
James Campos 2011-08-01 13:03:57 -07:00
parent f236d2a7eb
commit cf878694c3
2 changed files with 2 additions and 2 deletions

View File

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

View File

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