aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorelijahe2013-12-06 16:05:06 (EST)
committerSilenio Quarti2013-12-06 16:22:39 (EST)
commit9f43f0d0c18d91faca3a02b4973916f4c7425a2f (patch)
tree7be8ec984294a1902fe28e359fd9c79b292bb66f
parentdda852120689fc484efdc0011aa0f43fef178d1c (diff)
downloadorg.eclipse.orion.client-9f43f0d0c18d91faca3a02b4973916f4c7425a2f.zip
org.eclipse.orion.client-9f43f0d0c18d91faca3a02b4973916f4c7425a2f.tar.gz
org.eclipse.orion.client-9f43f0d0c18d91faca3a02b4973916f4c7425a2f.tar.bz2
Bug 422499 - Filtering for outliner does not find non-visible items
- Call postExpandFunc in TableTree.expand before returning if the row is already expanded --Signed-off-by: Elijah El-Haddad <elijahe@ca.ibm.com>
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/orion/webui/treetable.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/webui/treetable.js b/bundles/org.eclipse.orion.client.ui/web/orion/webui/treetable.js
index f3a08f3..baf0da8 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/webui/treetable.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/webui/treetable.js
@@ -247,6 +247,12 @@ define(['i18n!orion/nls/messages', 'orion/webui/littlelib'], function(messages,
var id = typeof(itemOrId) === "string" ? itemOrId : this._treeModel.getId(itemOrId); //$NON-NLS-0$
var row = lib.node(id);
if (row) {
+ if (row._expanded) {
+ if (postExpandFunc) {
+ postExpandFunc.apply(tree, args);
+ }
+ return;
+ }
var tree = this;
this._renderer.updateExpandVisuals(row, "progress"); //$NON-NLS-0$
this._treeModel.getChildren(row._item, function(children) {