Skip to content

Commit

Permalink
Fix: Deprecated .hover()
Browse files Browse the repository at this point in the history
  • Loading branch information
Dernerd committed Dec 24, 2023
1 parent 0fce743 commit a1e590b
Show file tree
Hide file tree
Showing 5 changed files with 1,566 additions and 35 deletions.
8 changes: 4 additions & 4 deletions includes/admin/ui/js/admin-product.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,13 @@ jQuery(document).ready(function($) {
};
$.fn.inlineEdit = function(replaceWith, connectWith) {
var inline_icon_edit = '<span class="inline-edit-icon"><i class="fa fa-pencil fa-lg"></i></span>';
$(this).hover(function() {
$(this).on('mouseenter', function() {
$(this).append(inline_icon_edit);
$(this).parent().find('.currency').hide();
}, function() {
}).on('mouseleave', function() {
$(this).find('.inline-edit-icon').remove();
if ($(this).parent().find('.currency').hasClass('.no_currency')) {
//Currency shouln't be shown
if ($(this).parent().find('.currency').hasClass('no_currency')) {
// Currency shouldn't be shown
} else {
$(this).parent().find('.currency').show();
}
Expand Down
10 changes: 5 additions & 5 deletions includes/admin/ui/js/mp-dashboard-widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jQuery( document ).ready( function( $ ) {
$.fn.inlineEdit = function( replaceWith, connectWith ) {
var inline_icon_edit = '<span class="inline-edit-icon"><i class="fa fa-pencil fa-lg"></i></span>';

$( this ).hover( function( ) {
$( this ).append( inline_icon_edit );
}, function( ) {
$( this ).find( '.inline-edit-icon' ).remove( );
} );
$(this).on('mouseenter', function() {
$(this).append(inline_icon_edit);
}).on('mouseleave', function() {
$(this).find('.inline-edit-icon').remove();
});

$( this ).on( 'click', function( ) {

Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Halte Dich mit unserem [Newsletter](https://n3rds.work/webmasterservice-n3rdswor
* Fix: Deprecated .size()
* Fix: Deprecated .select()
* Fix: Deprecated .resize()
* Fix: Deprecated .hover()

= 3.5.6 =

Expand Down
Loading

0 comments on commit a1e590b

Please sign in to comment.