mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-17 21:04:11 +00:00
17 lines
540 B
JavaScript
17 lines
540 B
JavaScript
|
( function ( mw, $ ) {
|
||
|
var MTH = {};
|
||
|
|
||
|
MTH.enterFullscreenMock = function() {
|
||
|
this.first().addClass( 'jq-fullscreened' ).data( 'isFullscreened', true );
|
||
|
|
||
|
$( document ).trigger( $.Event( 'jq-fullscreen-change', { element: this, fullscreen: true } ) );
|
||
|
};
|
||
|
|
||
|
MTH.exitFullscreenMock = function() {
|
||
|
this.first().removeClass( 'jq-fullscreened' ).data( 'isFullscreened', false );
|
||
|
|
||
|
$( document ).trigger( $.Event( 'jq-fullscreen-change', { element: this, fullscreen: false } ) );
|
||
|
};
|
||
|
|
||
|
mw.mmvTestHelpers = MTH;
|
||
|
} )( mediaWiki, jQuery );
|