remove label headlines from cache when articles are being assigned to it

This commit is contained in:
Andrew Dolgov 2009-01-18 11:25:06 +01:00
parent 4d23f96e95
commit 898e85628b

View file

@ -869,6 +869,8 @@ function selectionRemoveLabel(id) {
// notify_progress("Loading, please wait..."); // notify_progress("Loading, please wait...");
cache_invalidate("F:" + (-11 - id));
new Ajax.Request(query, { new Ajax.Request(query, {
onComplete: function(transport) { onComplete: function(transport) {
viewCurrentFeed(); viewCurrentFeed();
@ -896,6 +898,8 @@ function selectionAssignLabel(id) {
if (ok) { if (ok) {
cache_invalidate("F:" + (-11 - id));
var query = "backend.php?op=rpc&subop=assignToLabel&ids=" + var query = "backend.php?op=rpc&subop=assignToLabel&ids=" +
param_escape(ids.toString()) + "&lid=" + param_escape(id); param_escape(ids.toString()) + "&lid=" + param_escape(id);