scroll to post 2

This commit is contained in:
Baris Soner Usakli
2013-08-01 17:27:37 -04:00
parent 720dd9e960
commit 7297a26685
4 changed files with 18 additions and 13 deletions

View File

@@ -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);