From: Vincent Vanwaelscappel Date: Fri, 17 Aug 2018 10:20:17 +0000 (+0200) Subject: #2183 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=cb75d966ea3a28d13e4fd80de62c8b308f59cb30;p=fluidbook-html5.git #2183 --- 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); }