Make WordPress Core

Ticket #36627: 36627.03.patch

File 36627.03.patch, 834 bytes (added by walbo, 7 years ago)
  • src/wp-admin/js/theme.js

     
    577577
    578578                // Disable previous at the zero position
    579579                if ( 0 === this.model.collection.indexOf( current ) ) {
    580                         $themeInstaller.find( '.previous-theme' ).addClass( 'disabled' );
     580                        $themeInstaller.find( '.previous-theme' )
     581                                .addClass( 'disabled' )
     582                                .prop( 'disabled', true );
    581583                }
    582584
    583585                // Disable next if the next model is undefined
    584586                if ( _.isUndefined( this.model.collection.at( this.model.collection.indexOf( current ) + 1 ) ) ) {
    585                         $themeInstaller.find( '.next-theme' ).addClass( 'disabled' );
     587                        $themeInstaller.find( '.next-theme' )
     588                                .addClass( 'disabled' )
     589                                .prop( 'disabled', true );
    586590                }
    587591        },
    588592