From afb299656c5b42bacb9a57c4cc41b3b809e0df31 Mon Sep 17 00:00:00 2001 From: Sawa Date: Wed, 2 Aug 2017 05:02:19 +0800 Subject: [PATCH] fix(sidebar): search link not clickable A new id is added to the menu-search.html for mouse click event --- _includes/menu-search.html | 2 +- src/js/zmain.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/_includes/menu-search.html b/_includes/menu-search.html index f4389c5a2..bd39293db 100644 --- a/_includes/menu-search.html +++ b/_includes/menu-search.html @@ -55,7 +55,7 @@ diff --git a/src/js/zmain.js b/src/js/zmain.js index 61b2788d4..e7b6cec7a 100644 --- a/src/js/zmain.js +++ b/src/js/zmain.js @@ -21,6 +21,13 @@ return false; } }; + + // Search panel mouse click event suppport + $('#searching').click(function(){ + $('#fade').trigger('click'); + $("#search").trigger('click'); + }) + //Keys $(document).keydown(function(e){ // console.log(e.key);