Changeset 24020
- Timestamp:
- 04/17/2013 08:12:25 PM (12 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/colors-classic.css
r24019 r24020 1492 1492 1493 1493 .revision-tick.completed-true { 1494 background-color: # aaa;1494 background-color: #d1e5ee; 1495 1495 } 1496 1496 -
trunk/wp-admin/css/colors-fresh.css
r24019 r24020 1386 1386 1387 1387 .revision-tick.completed-true { 1388 background-color: # aaa;1388 background-color: #d7d7d7; 1389 1389 } 1390 1390 -
trunk/wp-admin/css/wp-admin.css
r24006 r24020 3629 3629 #diff-slider-ticks { 3630 3630 position: absolute; 3631 z-index: 1;3631 z-index: 2; 3632 3632 margin-top: 20px; 3633 3633 } -
trunk/wp-admin/js/revisions.js
r24019 r24020 244 244 }, 245 245 246 disabledButtonCheck: function( val ) { 247 var maxVal = this.revisions.length - 1, 248 next = $( '#next' ), 249 prev = $( '#previous' ); 250 251 // Disable "Next" button if you're on the last node 252 if ( maxVal === val ) 253 next.prop( 'disabled', true ); 254 else 255 next.prop( 'disabled', false ); 256 257 // Disable "Previous" button if you're on the 0 node 258 if ( 0 === val ) 259 prev.prop( 'disabled', true ); 260 else 261 prev.prop( 'disabled', false ); 262 }, 263 246 264 completeApplicationSetup: function() { 247 265 this.revisionView = new revisions.view.Diff({ … … 294 312 Diff.rightDiff = ( ui.value + 1 ); 295 313 Diff.revisionView.render(); 314 Diff.disabledButtonCheck( ui.value ); 296 315 } else { 297 316 if ( ui.values[0] === ui.values[1] ) // prevent compare to self … … 417 436 if ( slide ) 418 437 $( '#diff-slider' ).trigger( 'slide' ); 438 439 Diff.disabledButtonCheck( options.value ); 419 440 }, 420 441
Note: See TracChangeset
for help on using the changeset viewer.