This commit is contained in:
rulingcom 2021-09-22 15:22:47 +00:00
parent 47f6f9dde2
commit 17347e2fc3
1 changed files with 2 additions and 2 deletions

View File

@ -797,11 +797,11 @@ function transdate(){
window.has_hover = true; window.has_hover = true;
} }
$('.sitemenu-item.level-1').hover(function(){ $('.sitemenu-item.level-1').hover(function(){
if(window.has_hover){ if(window.has_hover && !$(this).hasClass("active")){
$(this).find(".sitemenu-dropdown-toggle").addClass("fa-caret-up").removeClass('fa-caret-down'); $(this).find(".sitemenu-dropdown-toggle").addClass("fa-caret-up").removeClass('fa-caret-down');
} }
},function(){ },function(){
if(window.has_hover){ if(window.has_hover && !$(this).hasClass("active")){
$(this).find(".sitemenu-dropdown-toggle").addClass("fa-caret-down").removeClass('fa-caret-up'); $(this).find(".sitemenu-dropdown-toggle").addClass("fa-caret-down").removeClass('fa-caret-up');
} }
}) })