From 5c5bebaa1fd7ee1035785cb53450f9c98a003b1c Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Thu, 16 May 2019 01:39:19 +0200 Subject: [PATCH] Remove timeout on update 4e443927515ef4b461690fabd21856bf77a54127 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. --- public/js/selfoss-events-entries.js | 3 ++- public/js/selfoss-events-navigation.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/js/selfoss-events-entries.js b/public/js/selfoss-events-entries.js index e04b4bdace..96b73e01fa 100644 --- a/public/js/selfoss-events-entries.js +++ b/public/js/selfoss-events-entries.js @@ -207,7 +207,8 @@ selfoss.events.entries = function() { content.html(articleList); $('#content').removeClass('loading'); alert($('#lang').data('error_refreshing_source') + ' ' + errorThrown); - } + }, + timeout: 0 }); }); diff --git a/public/js/selfoss-events-navigation.js b/public/js/selfoss-events-navigation.js index fdf76a312e..14a9e533f9 100644 --- a/public/js/selfoss-events-navigation.js +++ b/public/js/selfoss-events-navigation.js @@ -204,7 +204,8 @@ selfoss.events.navigation = function() { }, complete: function() { $('#nav-refresh').removeClass('loading'); - } + }, + timeout: 0 }); });