mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user