A little more revisions js/php cleanup. see #23901. props kovshenin, ocean90.

git-svn-id: https://develop.svn.wordpress.org/trunk@23904 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2013-04-04 16:03:21 +00:00
parent a4bf14e7da
commit 6bae3a6eda
2 changed files with 10 additions and 9 deletions

View File

@@ -633,11 +633,7 @@ window.wp = window.wp || {};
this.toogleCompareTwoCheckbox();
// hide the restore button when on the last sport/current post data
if ( Diff.rightDiff === Diff.revisions.length ){
$( '#restore-revision' ).hide();
} else {
$( '#restore-revision' ).show();
}
$( '#restore-revision' ).toggle( ! Diff.revisions.at( Diff.rightDiff - 1 ).get( 'is_current_revision' ) );
return this;
},
@@ -703,7 +699,8 @@ window.wp = window.wp || {};
lines_added: 0,
lines_deleted: 0,
scope_of_changes: 'none',
previous_revision_id: 0
previous_revision_id: 0,
is_current_revision: false
},
url: function() {