mirror of
https://github.com/processwire/processwire.git
synced 2025-08-17 20:11:46 +02:00
Fix issue processwire/processwire-issues#1767
This commit is contained in:
@@ -251,7 +251,9 @@ $(document).ready(function() {
|
|||||||
$outer.on('mouseover', '.PageListItem', function(e) {
|
$outer.on('mouseover', '.PageListItem', function(e) {
|
||||||
|
|
||||||
if($root.is(".PageListSorting") || $root.is(".PageListSortSaving")) return;
|
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);
|
$hoveredItem = $(this);
|
||||||
//console.log('pageX=' + e.pageX);
|
//console.log('pageX=' + e.pageX);
|
||||||
@@ -268,7 +270,8 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
hoverTimeout = setTimeout(function() {
|
hoverTimeout = setTimeout(function() {
|
||||||
if($hoveredItem.attr('class') == $item.attr('class')) {
|
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");
|
var $hideItems = $outer.find(".PageListItemHover");
|
||||||
showItem($hoveredItem);
|
showItem($hoveredItem);
|
||||||
$hideItems.each(function() { hideItem($(this)); });
|
$hideItems.each(function() { hideItem($(this)); });
|
||||||
|
File diff suppressed because one or more lines are too long
@@ -164,7 +164,7 @@ var ProcessWireAdmin = {
|
|||||||
function mouseleaver() {
|
function mouseleaver() {
|
||||||
if(timer) clearTimeout(timer);
|
if(timer) clearTimeout(timer);
|
||||||
timer = setTimeout(function() {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
$ul.fadeOut('fast');
|
$ul.fadeOut('fast');
|
||||||
|
2
wire/templates-admin/scripts/main.min.js
vendored
2
wire/templates-admin/scripts/main.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user