forked from GithubBackups/vichan
Merge vichan-devel
This commit is contained in:
commit
1006aa3132
@ -160,7 +160,7 @@ function mod_dashboard() {
|
||||
$latest = false;
|
||||
}
|
||||
|
||||
setcookie('update', serialize($latest), time() + $config['check_updates_time'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, $_SERVER['HTTPS'], true);
|
||||
setcookie('update', serialize($latest), time() + $config['check_updates_time'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']), true);
|
||||
}
|
||||
|
||||
if ($latest)
|
||||
|
@ -13,7 +13,17 @@ function unanimate_gif(e) {
|
||||
$(e).parent().prepend(c);
|
||||
c.attr('width', $(e).width());
|
||||
c.attr('height',$(e).height());
|
||||
c[0].getContext('2d').drawImage(e, 0, 0, $(e).width(), $(e).height());
|
||||
function draw_image() {
|
||||
c[0].getContext('2d').drawImage(e, 0, 0, $(e).width(), $(e).height())
|
||||
};
|
||||
|
||||
// Fix drawing image before loaded. Note that Chrome needs to check .complete because load() is NOT called if loaded from cache.
|
||||
if (!e.complete) {
|
||||
e.onload = draw_image;
|
||||
} else {
|
||||
draw_image();
|
||||
}
|
||||
|
||||
$(e).hide();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user