Bläddra i källkod

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 år sedan
förälder
incheckning
b77d9c60ac
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/views/javascript/actualize.phtml

+ 1 - 1
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);