MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
$(document).on('mmv-setup-overlay', function () {
$('html').addClass('mw-mmv-lightbox-linger');
});
$(document).on('mmv-cleanup-overlay', function () {
setTimeout(function () {
$('html').removeClass('mw-mmv-lightbox-linger');
}, 20)
});

Revision as of 14:04, 30 April 2021

/* Any JavaScript here will be loaded for all users on every page load. */

$(document).on('mmv-setup-overlay', function () {
	$('html').addClass('mw-mmv-lightbox-linger');
});

$(document).on('mmv-cleanup-overlay', function () {
	setTimeout(function () {
		$('html').removeClass('mw-mmv-lightbox-linger');
	}, 20)
});