Fix progress not always hiding onSuccess
This commit is contained in:
parent
25421c5b75
commit
58138744cd
1 changed files with 5 additions and 3 deletions
|
@ -101,9 +101,11 @@ $(function () {
|
||||||
progress.slideDown();
|
progress.slideDown();
|
||||||
progress.removeClass('indeterminate');
|
progress.removeClass('indeterminate');
|
||||||
progress.progress({
|
progress.progress({
|
||||||
total: cards.length,
|
total : cards.length,
|
||||||
onSuccess: function() {
|
onChange : function(percent, value, total) {
|
||||||
$(this).slideUp();
|
if (percent >= 100) {
|
||||||
|
setTimeout(() => { progress.slideUp(); }, 800);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue