]> git.wh0rd.org - tt-rss.git/commitdiff
archiveSelection: invalidate article cache
authorAndrew Dolgov <fox@bah.org.ru>
Mon, 28 Dec 2009 21:09:04 +0000 (00:09 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Mon, 28 Dec 2009 21:09:04 +0000 (00:09 +0300)
viewfeed.js

index ef3ab2c6ccefda4f0354ef3b9f82604cc38cd8f9..22371cf9d84516eb84d33c9f03790920501d23da 100644 (file)
@@ -1366,7 +1366,7 @@ function deleteSelection() {
                                } });
 
        } catch (e) {
-               exception_error("archiveSelection", e);
+               exception_error("deleteSelection", e);
        }
 }
 
@@ -1411,6 +1411,10 @@ function archiveSelection() {
 
                debug(query);
 
+               for (var i = 0; i < rows.length; i++) {
+                       cache_invalidate(rows[i]);
+               }
+
                new Ajax.Request(query, {
                        onComplete: function(transport) {
                                        viewCurrentFeed();