[ticket/13163] Check for images

PHPBB3-13163
This commit is contained in:
PayBas 2014-10-15 13:05:10 +02:00
parent 41d660dd98
commit 223ae1dfc2

View file

@ -613,6 +613,13 @@ function parseDocument($container) {
phpbb.registerDropdown($menu.find('a.responsive-menu-link'), $menu.find('.dropdown'), false); phpbb.registerDropdown($menu.find('a.responsive-menu-link'), $menu.find('.dropdown'), false);
} }
// If there are any images in the links list, run the check again after they have loaded
$linksAll.find('img').each(function() {
$(this).load(function() {
check();
});
});
check(); check();
$(window).resize(check); $(window).resize(check);
}); });