From bcf57cd4594005d6feb52d2486047d7200350126 Mon Sep 17 00:00:00 2001 From: rulingcom Date: Sat, 22 Jan 2022 10:52:31 +0000 Subject: [PATCH] fix error --- assets/javascripts/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 2752921..f2ac827 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -719,7 +719,7 @@ function transdate(){ // 當文件物件模型(DOM)載入後,執行init函數 $(document).ready(function() { $(document).on('focus','*',function(){ - if ($('header>.kenjohn').attr('class') == "kenjohn"){ + if ($('header>.kenjohn').attr('class') == "kenjohn" && $(document.activeElement).is('a.orbit-bar-logo')){ $('header>.kenjohn').addClass('navRel'); $('#gotocenter').focus(); }