Ticket #23941: 23941.1.diff
| File 23941.1.diff, 1.8 KB (added by , 14 years ago) |
|---|
-
wp-admin/css/wp-admin.css
3662 3662 position: relative; 3663 3663 } 3664 3664 3665 #to ogle-revision-compare-mode {3665 #toggle-revision-compare-mode { 3666 3666 position: absolute; 3667 3667 top: 0; 3668 3668 right: 0; -
wp-admin/js/revisions.js
630 630 ( Diff.rightDiff > Diff.revisions.length ) ? '' : Diff.revisions.at( Diff.rightDiff - 1 ).get( 'titleTooltip' ) ); 631 631 } 632 632 633 this.to ogleCompareTwoCheckbox();633 this.toggleCompareTwoCheckbox(); 634 634 635 635 // hide the restore button when on the last sport/current post data 636 636 $( '#restore-revision' ).toggle( ! Diff.revisions.at( Diff.rightDiff - 1 ).get( 'is_current_revision' ) ); … … 638 638 return this; 639 639 }, 640 640 641 to ogleCompareTwoCheckbox: function() {641 toggleCompareTwoCheckbox: function() { 642 642 // don't allow compare two if fewer than three revisions 643 643 if ( this.model.length < 3 ) 644 $( '#to ogle-revision-compare-mode' ).hide();644 $( '#toggle-revision-compare-mode' ).hide(); 645 645 646 646 $( '#compare-two-revisions' ).prop( 'checked', ! Diff.singleRevision ); 647 647 }, -
wp-admin/revision.php
116 116 </div> 117 117 118 118 <script id="tmpl-revisions-diff" type="text/html"> 119 <div id="to ogle-revision-compare-mode">119 <div id="toggle-revision-compare-mode"> 120 120 <label> 121 121 <input type="checkbox" id="compare-two-revisions" /> 122 122 <?php esc_attr_e( 'Compare two revisions' ); ?>