mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-15 11:40:43 +00:00
Merge "Add resize cursor to pointers"
This commit is contained in:
commit
9ec481052a
|
@ -20,7 +20,9 @@
|
|||
$html: null,
|
||||
|
||||
initialize: function () {
|
||||
this.$html = $( '<div>' ).attr( 'id', this.id ).addClass( 'mw-pointer' );
|
||||
this.$html = $( '<div>' )
|
||||
.attr( 'id', this.id )
|
||||
.addClass( 'mw-pointer mw-pointer-cursor' );
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -126,6 +126,9 @@
|
|||
axis: 'x',
|
||||
grid: [ this.revisionWidth, null ],
|
||||
containment: '.mw-pointer-container',
|
||||
start: function () {
|
||||
$( '.mw-revision-wrapper' ).addClass( 'mw-pointer-cursor' );
|
||||
},
|
||||
stop: function () {
|
||||
var $p = $( this ),
|
||||
pointer = self.whichPointer( $p ),
|
||||
|
@ -142,6 +145,8 @@
|
|||
|
||||
self.diffPage.refresh( revId1, revId2 );
|
||||
self.diffPage.pushState( revId1, revId2, self );
|
||||
|
||||
$( '.mw-revision-wrapper' ).removeClass( 'mw-pointer-cursor' );
|
||||
},
|
||||
drag: function ( event, ui ) {
|
||||
var newestVisibleRevisionLeftPos = containerWidth - self.revisionWidth;
|
||||
|
|
|
@ -129,6 +129,9 @@
|
|||
height: 13px;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.mw-pointer-cursor {
|
||||
cursor:ew-resize;
|
||||
}
|
||||
|
||||
.mw-revisions-older {
|
||||
float:left;
|
||||
|
|
Loading…
Reference in a new issue