diff options
author | Andrew Dolgov <[email protected]> | 2007-05-15 12:41:39 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-05-15 12:41:39 +0100 |
commit | b07b61da019a85b354ffc2941e94cf3374968c41 (patch) | |
tree | 2d84788f0e2f2cdbd2580b30e43beb14d0beb7c9 /viewfeed.js | |
parent | 3c19b058488d0ff0aa8740d5524aa49c4bcec38f (diff) |
invalidate article cache when editing tags
Diffstat (limited to 'viewfeed.js')
-rw-r--r-- | viewfeed.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/viewfeed.js b/viewfeed.js index bc296c556..622ea6378 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -633,6 +633,9 @@ function editArticleTags(id, feed_id, cdm_enabled) { _tag_active_post_id = id; _tag_active_feed_id = feed_id; _tag_active_cdm = cdm_enabled; + + cache_invalidate(id); + try { _tag_cdm_scroll = document.getElementById("headlinesInnerContainer").scrollTop; } catch (e) { } @@ -829,3 +832,16 @@ function cache_expire() { article_cache.shift(); } } + +function cache_invalidate(id) { + var i = 0 + + while (i < article_cache.length) { + if (article_cache[i]["id"] == id) { + article_cache.remove(i); + return true; + } + i++; + } + return false; +} |