Ticket #36627: 36627.03.patch
File 36627.03.patch, 834 bytes (added by , 7 years ago) |
---|
-
src/wp-admin/js/theme.js
577 577 578 578 // Disable previous at the zero position 579 579 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 ); 581 583 } 582 584 583 585 // Disable next if the next model is undefined 584 586 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 ); 586 590 } 587 591 }, 588 592