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:
Mark Jaquith 2013-07-11 18:43:18 +00:00
parent 9c1bac9eba
commit f22e1a65d2
1 changed files with 2 additions and 1 deletions

View File

@ -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.