mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed images used fadein even if loaded from cache
This commit is contained in:
@ -25,10 +25,12 @@ App.Util = function(_, jQuery, marked, promise) {
|
||||
}
|
||||
|
||||
function loadImagesNicely($img) {
|
||||
$img.css('opacity', '0');
|
||||
$img.bind('load', function() {
|
||||
$img.animate({opacity: 1}, 'fast');
|
||||
});
|
||||
if (!$img.get(0).complete) {
|
||||
$img.css('opacity', '0');
|
||||
$img.bind('load', function() {
|
||||
$img.animate({opacity: 1}, 'fast');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function promiseTemplate(templateName) {
|
||||
|
Reference in New Issue
Block a user