Add sort method to hide hidden columns in products sortable (#31866)
Co-authored-by: Jorge Torres <jorge@0xbad.com>
This commit is contained in:
parent
ef8cf9f460
commit
ca524a7266
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: fix
|
||||
|
||||
Fix for broken table layout when reordering products on the sorting screen.
|
|
@ -66,6 +66,15 @@ jQuery( function( $ ) {
|
|||
$( this ).removeClass( 'alternate' );
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
sort: function (e, ui) {
|
||||
ui.placeholder.find( 'td' ).each( function( key, value ) {
|
||||
if ( ui.helper.find( 'td' ).eq( key ).is( ':visible' ) ) {
|
||||
$( this ).show();
|
||||
} else {
|
||||
$( this ).hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue