Ticket #23899: 23899.3.patch
File 23899.3.patch, 2.3 KB (added by , 12 years ago) |
---|
-
wp-admin/js/revisions.js
243 243 this.reloadRight(); 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({ 248 266 model: this.revisions … … 293 311 if ( this.singleRevision ) { 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 298 317 return false; … … 416 435 // Triggers the slide event 417 436 if ( slide ) 418 437 $( '#diff-slider' ).trigger( 'slide' ); 438 439 Diff.disabledButtonCheck( options.value ); 419 440 }, 420 441 421 442 option: function( key ) { -
wp-admin/css/colors-fresh.css
1385 1385 } 1386 1386 1387 1387 .revision-tick.completed-true { 1388 background-color: # aaa;1388 background-color: #d7d7d7; 1389 1389 } 1390 1390 1391 1391 .diff-label { -
wp-admin/css/wp-admin.css
3628 3628 3629 3629 #diff-slider-ticks { 3630 3630 position: absolute; 3631 z-index: 1;3631 z-index: 2; 3632 3632 margin-top: 20px; 3633 3633 } 3634 3634 -
wp-admin/css/colors-classic.css
1491 1491 } 1492 1492 1493 1493 .revision-tick.completed-true { 1494 background-color: # aaa;1494 background-color: #d1e5ee; 1495 1495 } 1496 1496 1497 1497 .diff-label {