mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
posts on user account page scroll to the post now
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user