]> _ Git - fluidbook-html5.git/commitdiff
#2183
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 17 Aug 2018 10:20:17 +0000 (12:20 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 17 Aug 2018 10:20:17 +0000 (12:20 +0200)
js/libs/fluidbook/fluidbook.menu.js

index 1118a6142650f2ca9427f213084ea0777a91c767..377dd3d071d7f8838d1cf54847e567dcc7e98117 100644 (file)
@@ -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);
         }