Fix animation
This commit is contained in:
parent
291cdf8e7b
commit
3748d24d43
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ function deletecard(jobid) {
|
||||||
function addcard(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>';
|
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);
|
$('#cards').append(text);
|
||||||
$('#' + jobid).show();
|
$('html,body').animate({scrollTop: $('#' + jobid).offset().top});
|
||||||
}
|
}
|
||||||
|
|
||||||
function failcard(jobid) {
|
function failcard(jobid) {
|
||||||
|
|
Loading…
Reference in a new issue