mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-23 15:56:47 +00:00
It should be possible for editors via a gadget or Special:MyPage/common.css to hide the start and end arrows
Set mw-mmv-prev-image-loop, mw-mmv-next-image-loop classes. Bug: T377791 Change-Id: If4c398274ef5b86f1220ef6ed8a8265ddebc0d6b
This commit is contained in:
parent
8dab698605
commit
7c89a3e18b
|
@ -490,6 +490,8 @@ class LightboxInterface extends UiElement {
|
|||
this.$postDiv.css( 'top', this.$imageWrapper.height() );
|
||||
}
|
||||
|
||||
this.buttons.$prev.toggleClass( 'mw-mmv-prev-image-loop', currentIndex === 0 );
|
||||
this.buttons.$next.toggleClass( 'mw-mmv-next-image-loop', currentIndex === imageCount - 1 );
|
||||
this.buttons.setOffset( prevNextTop );
|
||||
this.buttons.$nav.toggle( imageCount > 1 );
|
||||
this.buttons.$currentImageNumber.show().text(
|
||||
|
|
Loading…
Reference in a new issue