Ticket #23899: 23899.2.patch
File 23899.2.patch, 2.3 KB (added by , 12 years ago) |
---|
-
wp-admin/js/revisions.js
244 244 this.reloadRight(); 245 245 }, 246 246 247 disabledButtonCheck: function( val ) { 248 var maxVal = this.revisions.length - 1, 249 next = $( '#next' ), 250 prev = $( '#previous' ); 251 252 // Disable "Next" button if you're on the last node 253 if ( maxVal === val ) 254 next.prop( 'disabled', true ); 255 else 256 next.prop( 'disabled', false ); 257 258 // Disable "Previous" button if you're on the 0 node 259 if ( 0 === val ) 260 prev.prop( 'disabled', true ); 261 else 262 prev.prop( 'disabled', false ); 263 }, 264 247 265 completeApplicationSetup: function() { 248 266 this.revisionView = new revisions.view.Diff({ 249 267 model: this.revisions … … 295 313 if ( this.singleRevision ) { 296 314 Diff.rightDiff = ( ui.value + 1 ); 297 315 Diff.revisionView.render(); 316 Diff.disabledButtonCheck( ui.value ); 298 317 } else { 299 318 if ( ui.values[0] === ui.values[1] ) // prevent compare to self 300 319 return false; … … 418 437 // Triggers the slide event 419 438 if ( slide ) 420 439 $( '#diff-slider' ).trigger( 'slide' ); 440 441 Diff.disabledButtonCheck( options.value ); 421 442 }, 422 443 423 444 option: function( key ) { -
wp-admin/css/colors-fresh.css
1395 1395 } 1396 1396 1397 1397 .revision-tick.loading-false { 1398 background-color: # aaa;1398 background-color: #d7d7d7; 1399 1399 } 1400 1400 1401 1401 body .ui-tooltip { -
wp-admin/css/wp-admin.css
3619 3619 3620 3620 #diff-slider-ticks { 3621 3621 position: absolute; 3622 z-index: 1;3622 z-index: 2; 3623 3623 margin-top: 20px; 3624 3624 } 3625 3625 -
wp-admin/css/colors-classic.css
1492 1492 } 1493 1493 1494 1494 .revision-tick.loading-false { 1495 background-color: # aaa;1495 background-color: #d1e5ee; 1496 1496 } 1497 1497 1498 1498 /* jQuery UI Slider */