From b77d9c60ac0cc6614ccc2711ab647d5e0a5037ed Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Thu, 13 Feb 2014 21:15:50 +0100 Subject: Use complete instead of done during feed refresh A request can fail: in this case, the progress bar is not updated by using "done". See #421 --- app/views/javascript/actualize.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/javascript/actualize.phtml') diff --git a/app/views/javascript/actualize.phtml b/app/views/javascript/actualize.phtml index a2b076ea8..3b12ad774 100644 --- a/app/views/javascript/actualize.phtml +++ b/app/views/javascript/actualize.phtml @@ -42,7 +42,7 @@ function updateFeed() { $.ajax({ type: 'POST', url: feed, - }).done(function (data) { + }).complete(function (data) { feed_processed++; updateProgressBar(feed_processed); -- cgit v1.2.3