From 15ec35c927932c4a6ac5f4c3d2793ba0233f0bc8 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 8 Jun 2006 18:53:49 +0000 Subject: [PATCH] Reload collections (all, for now) on changeParent() to refresh hasChildCollections() --- chrome/chromeFiles/content/scholar/xpcom/data_access.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/chromeFiles/content/scholar/xpcom/data_access.js b/chrome/chromeFiles/content/scholar/xpcom/data_access.js index 9e80bf1be6..50dbe14524 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/data_access.js +++ b/chrome/chromeFiles/content/scholar/xpcom/data_access.js @@ -1166,6 +1166,8 @@ Scholar.Collection.prototype.changeParent = function(parent){ notifyIDs.push(parent); } + // TODO: only reload the necessary ones + Scholar.Collections.reloadAll(); Scholar.Notifier.trigger('modify', 'collection', notifyIDs); return true; }