mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
added popstate check to trigger ajaxify on back button keypress. forward button doesn't work yet
This commit is contained in:
@@ -20,6 +20,10 @@ var ajaxify = {};
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
window.onpopstate = function(event) {
|
||||||
|
ajaxify.go(document.location.href.replace(rootUrl +'/', ''));
|
||||||
|
};
|
||||||
|
|
||||||
ajaxify.go = function(url, callback) {
|
ajaxify.go = function(url, callback) {
|
||||||
// leave room and join global
|
// leave room and join global
|
||||||
if (current_room != 'global') {
|
if (current_room != 'global') {
|
||||||
|
|||||||
Reference in New Issue
Block a user