]> _ Git - fluidbook-html5.git/commitdiff
Help display adjustment. WIP #807 @0.25
authorStephen Cameron <stephen@cubedesigners.com>
Wed, 14 Jun 2017 17:13:27 +0000 (19:13 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Wed, 14 Jun 2017 17:13:27 +0000 (19:13 +0200)
js/libs/fluidbook/fluidbook.help.js

index bda1442d13e87eb911e1c537e98c8cf8d4815e39..424c44da3a15101aaed80968c1e1deaa993bedc3 100644 (file)
@@ -105,13 +105,17 @@ FluidbookHelp.prototype = {
        initEvents: function() {\r
                var $this = this;\r
                if (!this.fluidbook.support.isMobile) {\r
-                       $("#help").hover(function() {\r
+                       $("#help").click(function(e) {\r
                                $this.show();\r
-                       }, function() {\r
+                               if (fluidbook.nav.menuIsOpen) {\r
+                                       fluidbook.nav.menuAPI.close();\r
+                               }\r
+                               e.preventDefault();\r
+                       }/*, function() {\r
                                $this.hide();\r
                        }).click(function() {\r
                                return false;\r
-                       });\r
+                       }*/);\r
                } else {\r
                        $("#help").click(function() {\r
                                $this.show();\r