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. git-svn-id: https://develop.svn.wordpress.org/trunk@24661 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9c1bac9eba
commit
f22e1a65d2
@ -664,10 +664,11 @@ window.wp = window.wp || {};
|
||||
|
||||
initialize: function() {
|
||||
this.$el.html( this.template() );
|
||||
this.listenTo( this.model, 'update:revisions', this.disabledButtonCheck );
|
||||
},
|
||||
|
||||
ready: function() {
|
||||
this.listenTo( this.model, 'update:revisions', this.disabledButtonCheck );
|
||||
this.disabledButtonCheck();
|
||||
},
|
||||
|
||||
// Go to a specific modelindex, taking into account RTL mode.
|
||||
|
Loading…
Reference in New Issue
Block a user