Don't break Header.hashScroll() for #top and #bottom.

This commit is contained in:
Mayhem 2013-11-02 04:26:08 +01:00
parent 0540dcf30f
commit 6dcf11db66

View File

@ -242,7 +242,8 @@ Header =
$('input[name=boardnav]', settings).focus()
hashScroll: ->
return unless (hash = @location.hash[1..]) and post = $.id hash
hash = @location.hash[1..]
return unless /^p\d+$/.test(hash) and post = $.id hash
return if (Get.postFromRoot post).isHidden
Header.scrollTo post
scrollTo: (root) ->