WordPress.org

Make WordPress Core

Changeset 24661


Ignore:
Timestamp:
07/11/2013 06:43:18 PM (9 years ago)
Author:
markjaquith
Message:

Revisions: Immediately do a disabled button check on ready().

Solves the issue of Prev/Next buttons not being disabled on initial load, when routing to an extremity.

See #24425.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/revisions.js

    r24660 r24661  
    665665        initialize: function() {
    666666            this.$el.html( this.template() );
     667            this.listenTo( this.model, 'update:revisions', this.disabledButtonCheck );
    667668        },
    668669
    669670        ready: function() {
    670             this.listenTo( this.model, 'update:revisions', this.disabledButtonCheck );
     671            this.disabledButtonCheck();
    671672        },
    672673
Note: See TracChangeset for help on using the changeset viewer.