Check image cache when generating a toggleButton
This commit is contained in:
parent
3935bd6448
commit
82243d5208
@ -3022,8 +3022,14 @@ AJAX.registerTeardown('functions.js', function() {
|
||||
AJAX.registerOnload('functions.js', function () {
|
||||
$('div.toggleAjax').each(function () {
|
||||
var $button = $(this).show();
|
||||
$button.find('img').load(function () {
|
||||
toggleButton($button);
|
||||
$button.find('img').each(function() {
|
||||
if (this.complete) {
|
||||
toggleButton($button);
|
||||
} else {
|
||||
$(this).load(function () {
|
||||
toggleButton($button);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user