Update deprecated hovers

This commit is contained in:
roykho 2021-02-18 06:35:24 -08:00 committed by Jonathan Sadowski
parent a75a3d7176
commit 6c804e31d7
8 changed files with 19 additions and 19 deletions

View File

@ -137,9 +137,9 @@
// SLIDSESHOW
if (slider.vars.slideshow) {
if (slider.vars.pauseOnHover) {
slider.hover(function() {
slider.on( 'mouseenter', function() {
if (!slider.manualPlay && !slider.manualPause) { slider.pause(); }
}, function() {
} ).on( 'mouseleave', function() {
if (!slider.manualPause && !slider.manualPlay && !slider.stopped) { slider.play(); }
});
}

View File

@ -63,15 +63,15 @@
var timeout = false;
if(opts.activation == "hover"){
org_elem.hover(function(){
org_elem.on( 'mouseenter', function(){
active_tiptip();
}, function(){
} ).on( 'mouseleave', function(){
if(!opts.keepAlive || !tiptip_holder.is(':hover')){
deactive_tiptip();
}
});
if(opts.keepAlive){
tiptip_holder.hover(function(){}, function(){
tiptip_holder.on( 'mouseenter', function(){} ).on( 'mouseleave', function(){
deactive_tiptip();
});
}
@ -85,13 +85,13 @@
org_elem.on( 'click', function(){
active_tiptip();
return false;
}).on( 'hover', function(){},function(){
}).on( 'mouseenter', function(){} ).on( 'mouseleave' ,function(){
if(!opts.keepAlive){
deactive_tiptip();
}
});
if(opts.keepAlive){
tiptip_holder.hover(function(){}, function(){
tiptip_holder.on( 'mouseenter', function(){} ).on( 'mouseleave', function(){
deactive_tiptip();
});
}

View File

@ -788,10 +788,10 @@
return false;
});
$pp_pic_holder.find('.pp_content').hover(
$pp_pic_holder.find('.pp_content').on( 'mouseenter',
function(){
$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn();
},
} ).on( 'mouseleave',
function(){
$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut();
});

View File

@ -556,10 +556,10 @@ class WC_Report_Coupon_Usage extends WC_Admin_Report {
drawGraph();
jQuery('.highlight_series').hover(
jQuery('.highlight_series').on( 'mouseenter',
function() {
drawGraph( jQuery(this).data('series') );
},
} ).on( 'mouseleave',
function() {
drawGraph();
}

View File

@ -417,10 +417,10 @@ class WC_Report_Customers extends WC_Admin_Report {
drawGraph();
jQuery('.highlight_series').hover(
jQuery('.highlight_series').on( 'mouseenter',
function() {
drawGraph( jQuery(this).data('series') );
},
} ).on( 'mouseleave',
function() {
drawGraph();
}

View File

@ -436,10 +436,10 @@ class WC_Report_Sales_By_Category extends WC_Admin_Report {
drawGraph();
jQuery('.highlight_series').hover(
jQuery('.highlight_series').on( 'mouseenter',
function() {
drawGraph( jQuery(this).data('series') );
},
} ).on( 'mouseleave',
function() {
drawGraph();
}

View File

@ -854,10 +854,10 @@ class WC_Report_Sales_By_Date extends WC_Admin_Report {
drawGraph();
jQuery('.highlight_series').hover(
jQuery('.highlight_series').on( 'mouseenter',
function() {
drawGraph( jQuery(this).data('series') );
},
} ).on( 'mouseleave',
function() {
drawGraph();
}

View File

@ -615,10 +615,10 @@ class WC_Report_Sales_By_Product extends WC_Admin_Report {
drawGraph();
jQuery('.highlight_series').hover(
jQuery('.highlight_series').on( 'mouseenter',
function() {
drawGraph( jQuery(this).data('series') );
},
} ).on( 'mouseleave',
function() {
drawGraph();
}