Fix typo in revisions JS/CSS. props mgibbs189, JustinSainton. fixes #23941.

git-svn-id: http://core.svn.wordpress.org/trunk@23908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2013-04-04 20:49:26 +00:00
parent 3015605cae
commit 9e78cd0042
3 changed files with 5 additions and 5 deletions

View File

@ -3662,7 +3662,7 @@ table.diff .diff-addedline ins {
position: relative;
}
#toogle-revision-compare-mode {
#toggle-revision-compare-mode {
position: absolute;
top: 0;
right: 0;

View File

@ -630,7 +630,7 @@ window.wp = window.wp || {};
( Diff.rightDiff > Diff.revisions.length ) ? '' : Diff.revisions.at( Diff.rightDiff - 1 ).get( 'titleTooltip' ) );
}
this.toogleCompareTwoCheckbox();
this.toggleCompareTwoCheckbox();
// hide the restore button when on the last sport/current post data
$( '#restore-revision' ).toggle( ! Diff.revisions.at( Diff.rightDiff - 1 ).get( 'is_current_revision' ) );
@ -638,10 +638,10 @@ window.wp = window.wp || {};
return this;
},
toogleCompareTwoCheckbox: function() {
toggleCompareTwoCheckbox: function() {
// don't allow compare two if fewer than three revisions
if ( this.model.length < 3 )
$( '#toogle-revision-compare-mode' ).hide();
$( '#toggle-revision-compare-mode' ).hide();
$( '#compare-two-revisions' ).prop( 'checked', ! Diff.singleRevision );
},

View File

@ -116,7 +116,7 @@ require_once( './admin-header.php' );
</div>
<script id="tmpl-revisions-diff" type="text/html">
<div id="toogle-revision-compare-mode">
<div id="toggle-revision-compare-mode">
<label>
<input type="checkbox" id="compare-two-revisions" />
<?php esc_attr_e( 'Compare two revisions' ); ?>