mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-28 10:00:18 +00:00
Merge "Fixes bug where next/prev would exit fullscreen mode"
This commit is contained in:
commit
fe846f3063
|
@ -106,6 +106,12 @@
|
|||
* @param {string} [parentId] parent id where we want to attach the UI. Mainly for testing.
|
||||
*/
|
||||
LIP.attach = function ( parentId ) {
|
||||
// Re-appending the same content can have nasty side-effects
|
||||
// Such as the browser leaving fullscreen mode if the fullscreened element is part of it
|
||||
if ( this.currentlyAttached ) {
|
||||
return;
|
||||
}
|
||||
|
||||
var parent = $( parentId || document.body );
|
||||
|
||||
parent
|
||||
|
|
Loading…
Reference in a new issue