Update deprecated hovers
This commit is contained in:
parent
a75a3d7176
commit
6c804e31d7
|
@ -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(); }
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue