Fix animation

This commit is contained in:
Kumi 2018-10-21 19:11:31 +02:00
parent 291cdf8e7b
commit 3748d24d43
No known key found for this signature in database
GPG key ID: 8D4E139A5FF9082F

View file

@ -26,7 +26,7 @@ function deletecard(jobid) {
function addcard(jobid) {
var text = '<div class="col-sm-3" id="' + jobid + '"> <div class="card"> <img class="card-img-top img-fluid" src="/spinner.gif" alt="Creating Image"> </div> </div>';
$('#cards').append(text);
$('#' + jobid).show();
$('html,body').animate({scrollTop: $('#' + jobid).offset().top});
}
function failcard(jobid) {