fade in product list table-row suggestions, so it's less jarring

This commit is contained in:
haszari 2019-03-05 10:15:18 +13:00
parent 4154ae55a0
commit 06b5b89336
1 changed files with 5 additions and 1 deletions

View File

@ -381,15 +381,19 @@
var rows = $( this ).children();
var minRow = 3;
$( content ).hide();
if ( rows.length <= minRow ) {
// if small number of rows, append at end
$( this ).append( content );
}
else {
// for more rows, append
// for more rows, insert
$( rows[ minRow - 1 ] ).after( content );
}
$( content ).fadeIn();
usedSuggestionsContexts.push( context );
window.wcTracks.recordEvent( 'marketplace_suggestion_displayed', {