Browse Source

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
Marien Fressinaud 12 years ago
parent
commit
b77d9c60ac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/views/javascript/actualize.phtml

+ 1 - 1
app/views/javascript/actualize.phtml

@@ -42,7 +42,7 @@ function updateFeed() {
 	$.ajax({
 	$.ajax({
 		type: 'POST',
 		type: 'POST',
 		url: feed,
 		url: feed,
-	}).done(function (data) {
+	}).complete(function (data) {
 		feed_processed++;
 		feed_processed++;
 		updateProgressBar(feed_processed);
 		updateProgressBar(feed_processed);