summaryrefslogtreecommitdiff
path: root/viewfeed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-11-22 06:15:21 +0100
committerAndrew Dolgov <[email protected]>2007-11-22 06:15:21 +0100
commitebda016b58ae8a29fa86ee7e4b8766c024f48303 (patch)
tree42b7efc9077aa506bd6835edba0b4e047e625c43 /viewfeed.js
parent8e9dd206ef14823e0bd79662fdd02bf6b3159611 (diff)
invalidate headline cache when updated article is clicked
Diffstat (limited to 'viewfeed.js')
-rw-r--r--viewfeed.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/viewfeed.js b/viewfeed.js
index aa3a14837..2b264b0a8 100644
--- a/viewfeed.js
+++ b/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);