added popstate check to trigger ajaxify on back button keypress. forward button doesn't work yet

v1.18.x
psychobunny 12 years ago
parent dd4758725e
commit 5aa3dab289

@ -20,6 +20,10 @@ var ajaxify = {};
};
window.onpopstate = function(event) {
ajaxify.go(document.location.href.replace(rootUrl +'/', ''));
};
ajaxify.go = function(url, callback) {
// leave room and join global
if (current_room != 'global') {

Loading…
Cancel
Save