Index: trunk/phase3/resources/mediawiki.action/mediawiki.action.history.js |
— | — | @@ -20,12 +20,12 @@ |
21 | 21 | |
22 | 22 | // this row has a checked radio button |
23 | 23 | if ( $inputs.get(0).checked ) { |
24 | | - oldLi = $this; |
| 24 | + oldLi = true; |
25 | 25 | $this.addClass( 'selected' ); |
26 | 26 | $inputs.eq(0).css( 'visibility', 'visible' ); |
27 | 27 | $inputs.eq(1).css( 'visibility', 'hidden' ); |
28 | 28 | } else if ( $inputs.get(1).checked ) { |
29 | | - diffLi = $this; |
| 29 | + diffLi = true; |
30 | 30 | $this.addClass( 'selected' ); |
31 | 31 | $inputs.eq(0).css( 'visibility', 'hidden' ); |
32 | 32 | $inputs.eq(1).css( 'visibility', 'visible' ); |
— | — | @@ -37,8 +37,7 @@ |
38 | 38 | $inputs.eq(1).css( 'visibility', 'hidden' ); |
39 | 39 | } else if ( diffLi ) { |
40 | 40 | // We're between the selected radios |
41 | | - $inputs.eq(0).css( 'visibility', 'visible' ); |
42 | | - $inputs.eq(1).css( 'visibility', 'visible' ); |
| 41 | + $inputs.css( 'visibility', 'visible' ); |
43 | 42 | } else { |
44 | 43 | // We're above the selected radios |
45 | 44 | $inputs.eq(1).css( 'visibility', 'visible' ); |