mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15668] Replace .load() with .on('load')
PHPBB3-15668
This commit is contained in:
parent
02cbb864a5
commit
5e70c9b831
2 changed files with 2 additions and 2 deletions
|
@ -1644,7 +1644,7 @@ phpbb.lazyLoadAvatars = function loadAvatars() {
|
|||
});
|
||||
};
|
||||
|
||||
$(window).load(phpbb.lazyLoadAvatars);
|
||||
$(window).on('load', phpbb.lazyLoadAvatars);
|
||||
|
||||
/**
|
||||
* Apply code editor to all textarea elements with data-bbcode attribute
|
||||
|
|
|
@ -612,7 +612,7 @@ function parseDocument($container) {
|
|||
|
||||
// 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() {
|
||||
$(this).on('load', function() {
|
||||
check();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue