소스 검색

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 년 전
부모
커밋
b77d9c60ac
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);