summaryrefslogtreecommitdiff
path: root/horizon/static/horizon/js/horizon.hacks.js
diff options
context:
space:
mode:
Diffstat (limited to 'horizon/static/horizon/js/horizon.hacks.js')
-rw-r--r--horizon/static/horizon/js/horizon.hacks.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/horizon/static/horizon/js/horizon.hacks.js b/horizon/static/horizon/js/horizon.hacks.js
index d1db9fa93..6df69894b 100644
--- a/horizon/static/horizon/js/horizon.hacks.js
+++ b/horizon/static/horizon/js/horizon.hacks.js
@@ -15,7 +15,7 @@
// Added so that we can break Firefox and Safari bfcache to
// prevent loading previous page from cache.
horizon.addInitFunction(function () {
- $(window).bind('pageshow', function(event) {
+ $(window).on('pageshow', function(event) {
if (event.originalEvent.persisted) {
window.location.reload();
}