mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
scroll to post 2
This commit is contained in:
@@ -71,7 +71,10 @@ var ajaxify = {};
|
||||
|
||||
jQuery('#content, #footer').stop(true, true).fadeIn(200, function() {
|
||||
console.log('done loading');
|
||||
app.scrollToPost(hash.substr(1));
|
||||
if(window.location.hash)
|
||||
hash = window.location.hash;
|
||||
if(hash)
|
||||
app.scrollToPost(hash.substr(1));
|
||||
});
|
||||
|
||||
}, url, template);
|
||||
|
||||
Reference in New Issue
Block a user