Improve wishes progressbar
This commit is contained in:
parent
df15efcf4d
commit
5471bdd3c9
1 changed files with 7 additions and 2 deletions
|
@ -91,7 +91,10 @@ $(function () {
|
|||
progress.slideDown();
|
||||
progress.removeClass('indeterminate');
|
||||
progress.progress({
|
||||
total: cards.length
|
||||
total: cards.length,
|
||||
onSuccess: function() {
|
||||
$(this).slideUp();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
progress.slideUp();
|
||||
|
@ -140,7 +143,7 @@ $(function () {
|
|||
.then(handleFetchError)
|
||||
.then(handleFetchResponse)
|
||||
.then(function(response) {
|
||||
card.html(response.html);
|
||||
card.replaceWith(response.html);
|
||||
})
|
||||
.catch(function(error) {
|
||||
console.log(error);
|
||||
|
@ -149,6 +152,8 @@ $(function () {
|
|||
card.attr('data-cache', 'true');
|
||||
card.removeClass('loading');
|
||||
|
||||
progress.progress('increment');
|
||||
|
||||
$('.ui.dropdown').dropdown();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue