posts on user account page scroll to the post now

This commit is contained in:
Baris Soner Usakli
2013-08-01 18:00:32 -04:00
parent 23fcdde25e
commit a5acf31fc6
3 changed files with 5 additions and 3 deletions

View File

@@ -70,7 +70,6 @@ var ajaxify = {};
app.process_page();
jQuery('#content, #footer').stop(true, true).fadeIn(200, function() {
console.log('done loading');
if(window.location.hash)
hash = window.location.hash;
if(hash)
@@ -93,6 +92,9 @@ var ajaxify = {};
// Enhancing all anchors to ajaxify...
$(document.body).on('click', 'a', function(e) {
if (this.href == window.location.href + "#") return;
if(this.href.slice(-1) === "#") return;
var url = this.href.replace(rootUrl +'/', '');
if (this.target !== '') return;