mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 16:23:49 +00:00
Trigger fullscreen-change event when closing lightbox interface
When exit button is clicked in the full screen mode, the lightboxinterface detaches itself but the "jq-fullscreen-change.lip" even is never fired. This leads to issues as described in T74843 and similar. Bug: T74843 Change-Id: Id3a68844fd2405fcf289741d54b0602c8e337a3d
This commit is contained in:
parent
55c7b2d5d5
commit
454b279140
|
@ -320,6 +320,9 @@
|
||||||
gravity: this.correctEW( 'ne' )
|
gravity: this.correctEW( 'ne' )
|
||||||
} )
|
} )
|
||||||
.click( function () {
|
.click( function () {
|
||||||
|
if ( ui.isFullscreen ) {
|
||||||
|
ui.$main.trigger( $.Event( 'jq-fullscreen-change.lip' ) );
|
||||||
|
}
|
||||||
ui.unattach();
|
ui.unattach();
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue