mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-09 22:13:05 +09:00
do onpopstate a little differently for old Safari browsers
Safari is an old browser on Windows.
This commit is contained in:
1 parent
e099608bcc
commit
b80d4d7cd5
1 file changed
+2
-2
+2
-2
@@ -598,13 +598,13 @@ function ajaxAnchors() {
|
||||
});
|
||||
|
||||
$(window).unbind('popstate').on('popstate', function(event) {
|
||||
if (window.history.state !== null) {
|
||||
if (event.state) {
|
||||
href = document.location.href;
|
||||
if (href !== null) {
|
||||
document.location = href;
|
||||
}
|
||||
}
|
||||
});
|
||||
}, false);
|
||||
}
|
||||
|
||||
function setupCollapsible() {
|
||||
|
||||
Reference in new issue
Block a user