Fix: Attributes on Edit Product page - "Select all" not working after "Select none" used

This commit is contained in:
Tanvirul Haque 2020-12-29 18:55:20 +06:00
parent b3be8931d6
commit 6379089465
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ jQuery( function( $ ) {
});
$( '.product_attributes' ).on( 'click', 'button.select_all_attributes', function() {
$( this ).closest( 'td' ).find( 'select option' ).attr( 'selected', 'selected' );
$( this ).closest( 'td' ).find( 'select option' ).prop( 'selected', 'selected' );
$( this ).closest( 'td' ).find( 'select' ).change();
return false;
});