mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:05:55 +00:00
invalidate headline cache when updated article is clicked
This commit is contained in:
12
viewfeed.js
12
viewfeed.js
@@ -250,8 +250,18 @@ function showArticleInHeadlines(id) {
|
||||
|
||||
var upd_img_pic = document.getElementById("FUPDPIC-" + id);
|
||||
|
||||
if (upd_img_pic) {
|
||||
if (upd_img_pic && upd_img_pic.src.match("updated.png")) {
|
||||
upd_img_pic.src = "images/blank_icon.gif";
|
||||
|
||||
var cache_prefix = "";
|
||||
|
||||
if (activeFeedIsCat()) {
|
||||
cache_prefix = "C:";
|
||||
} else {
|
||||
cache_prefix = "F:";
|
||||
}
|
||||
|
||||
cache_invalidate(cache_prefix + getActiveFeedId());
|
||||
}
|
||||
|
||||
selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false);
|
||||
|
||||
Reference in New Issue
Block a user