1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 10:15:28 +02:00
This commit is contained in:
Ryan Cramer
2023-06-28 09:14:22 -04:00
parent c8e9b6c65a
commit 1749ba17ac
4 changed files with 8 additions and 5 deletions

View File

@@ -251,7 +251,9 @@ $(document).ready(function() {
$outer.on('mouseover', '.PageListItem', function(e) {
if($root.is(".PageListSorting") || $root.is(".PageListSortSaving")) return;
if(!$(this).children('a').first().is(":hover")) return;
var $a = $(this).children('a').first();
if($a.length && !$a.is(':hover')) return;
$hoveredItem = $(this);
//console.log('pageX=' + e.pageX);
@@ -268,7 +270,8 @@ $(document).ready(function() {
hoverTimeout = setTimeout(function() {
if($hoveredItem.attr('class') == $item.attr('class')) {
if(!$hoveredItem.children('a').first().is(":hover")) return;
var $a = $hoveredItem.children('a').first();
if($a.length && !$a.is(':hover')) return;
var $hideItems = $outer.find(".PageListItemHover");
showItem($hoveredItem);
$hideItems.each(function() { hideItem($(this)); });

File diff suppressed because one or more lines are too long

View File

@@ -164,7 +164,7 @@ var ProcessWireAdmin = {
function mouseleaver() {
if(timer) clearTimeout(timer);
timer = setTimeout(function() {
if($ul.filter(":hover").length || $a.filter(":hover").length) {
if(($ul.length && $ul[0].matches(':hover')) || ($a.length && $a[0].matches(':hover'))) {
return;
}
$ul.fadeOut('fast');

File diff suppressed because one or more lines are too long