Fix progress not always hiding onSuccess

This commit is contained in:
grandeljay 2022-06-16 12:02:09 +02:00
parent 25421c5b75
commit 58138744cd

View file

@ -101,9 +101,11 @@ $(function () {
progress.slideDown();
progress.removeClass('indeterminate');
progress.progress({
total: cards.length,
onSuccess: function() {
$(this).slideUp();
total : cards.length,
onChange : function(percent, value, total) {
if (percent >= 100) {
setTimeout(() => { progress.slideUp(); }, 800);
}
}
});
} else {