mirror of
https://github.com/miniflux/v2.git
synced 2025-07-02 16:38:37 +00:00
Add new page for background feeds refresh
This commit is contained in:
parent
23d2cfe0f9
commit
c60b3f52a5
21 changed files with 85 additions and 26 deletions
|
@ -204,14 +204,10 @@ function markEntryAsRead(element) {
|
|||
// Send the Ajax request to refresh all feeds in the background
|
||||
function handleRefreshAllFeeds() {
|
||||
let url = document.body.dataset.refreshAllFeedsUrl;
|
||||
let request = new RequestBuilder(url);
|
||||
|
||||
request.withCallback(() => {
|
||||
window.location.reload();
|
||||
});
|
||||
|
||||
request.withHttpMethod("GET");
|
||||
request.execute();
|
||||
if (url) {
|
||||
window.location.href = url;
|
||||
}
|
||||
}
|
||||
|
||||
// Send the Ajax request to change entries statuses.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue