From cb75d966ea3a28d13e4fd80de62c8b308f59cb30 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 17 Aug 2018 12:20:17 +0200 Subject: [PATCH] #2183 --- js/libs/fluidbook/fluidbook.menu.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.menu.js b/js/libs/fluidbook/fluidbook.menu.js index 1118a614..377dd3d0 100644 --- a/js/libs/fluidbook/fluidbook.menu.js +++ b/js/libs/fluidbook/fluidbook.menu.js @@ -12,7 +12,8 @@ FluidbookMenu.prototype = { // This was added for #viewOverlay in the CSS // More details: https://stackoverflow.com/a/16006333 $(document).on('click', ".mview .back, #viewOverlay", function () { - $this.closeView(function(){},true); + $this.closeView(function () { + }, true); return false; }); @@ -450,7 +451,7 @@ FluidbookMenu.prototype = { } var currentHash = window.location.hash; - window.location.hash = '/page/' + $this.fluidbook.currentPage; + window.location.hash = '/page/' + this.fluidbook.currentPage; if (window.location.hash == currentHash) { this._closeView(callback, all, animate); } -- 2.39.5