mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
update post has in address bar, #1126
This commit is contained in:
@@ -1023,6 +1023,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
localStorage.removeItem("topic:" + templates.get('topic_id') + ":bookmark");
|
localStorage.removeItem("topic:" + templates.get('topic_id') + ":bookmark");
|
||||||
} else {
|
} else {
|
||||||
localStorage.setItem("topic:" + templates.get('topic_id') + ":bookmark", el.attr('data-pid'));
|
localStorage.setItem("topic:" + templates.get('topic_id') + ":bookmark", el.attr('data-pid'));
|
||||||
|
window.location.hash = el.attr('data-pid');
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user