Skip to content

Commit

Permalink
Remove timeout on update
Browse files Browse the repository at this point in the history
4e44392 added a default timeout to AJAX requests.
That broke update buttons because source update requests are expected to be long running.

Let's remove the timeout for that cases again.
  • Loading branch information
jtojnar committed May 15, 2019
1 parent fd98de0 commit 5c5beba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion public/js/selfoss-events-entries.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ selfoss.events.entries = function() {
content.html(articleList);
$('#content').removeClass('loading');
alert($('#lang').data('error_refreshing_source') + ' ' + errorThrown);
}
},
timeout: 0
});
});

Expand Down
3 changes: 2 additions & 1 deletion public/js/selfoss-events-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ selfoss.events.navigation = function() {
},
complete: function() {
$('#nav-refresh').removeClass('loading');
}
},
timeout: 0
});
});

Expand Down

0 comments on commit 5c5beba

Please sign in to comment.