aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorelijahe2013-11-19 11:27:27 (EST)
committerSilenio Quarti2013-11-21 10:16:48 (EST)
commitca362547251502ccb27ed960d005119a50059ee4 (patch)
tree3b145bf9989054989f21dd1378687ff86306a1ba
parentb527166f66df059dfd9b70a84872732355ecae7b (diff)
downloadorg.eclipse.orion.client-ca362547251502ccb27ed960d005119a50059ee4.zip
org.eclipse.orion.client-ca362547251502ccb27ed960d005119a50059ee4.tar.gz
org.eclipse.orion.client-ca362547251502ccb27ed960d005119a50059ee4.tar.bz2
Bug 394861 - outliner should provide filtering
- Final changes after review. --Signed-off-by: Elijah El-Haddad <elijahe@ca.ibm.com>
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/css/sections.css13
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/edit/common.css11
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/orion/outliner.js4
3 files changed, 13 insertions, 15 deletions
diff --git a/bundles/org.eclipse.orion.client.ui/web/css/sections.css b/bundles/org.eclipse.orion.client.ui/web/css/sections.css
index 2cf2c09..0ffe9b8 100644
--- a/bundles/org.eclipse.orion.client.ui/web/css/sections.css
+++ b/bundles/org.eclipse.orion.client.ui/web/css/sections.css
@@ -81,16 +81,3 @@ sectionAnchor {
font-weight: bold;
font-size: 1.2em;
}
-
-.outlineFilter {
- border: 1px solid black;
- border-radius: 4px;
- box-shadow: 0 2px 1px #888888;
- float: left;
- text-align: left;
- width: 99%;
-}
-
-.hiddenRow {
- display: none;
-}
diff --git a/bundles/org.eclipse.orion.client.ui/web/edit/common.css b/bundles/org.eclipse.orion.client.ui/web/edit/common.css
index 4ae2136..286fef7 100644
--- a/bundles/org.eclipse.orion.client.ui/web/edit/common.css
+++ b/bundles/org.eclipse.orion.client.ui/web/edit/common.css
@@ -14,6 +14,17 @@
overflow-y: hidden;
}
+.outlineFilter {
+ border: 1px solid lightgrey;
+ margin-left: 0;
+ text-align: left;
+ width: 99%;
+}
+
+.outlineRowHidden {
+ display: none;
+}
+
.findOptionsDiv {
display: inline-block;
margin: 0;
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/outliner.js b/bundles/org.eclipse.orion.client.ui/web/orion/outliner.js
index 10da16c..c66fa82 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/outliner.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/outliner.js
@@ -128,10 +128,10 @@ define([
item = itemMap[id];
if (-1 === item.label.indexOf(filter)) {
//hide
- navDict.getValue(id).rowDomNode.classList.add("hiddenRow"); //$NON-NLS-0$
+ navDict.getValue(id).rowDomNode.classList.add("outlineRowHidden"); //$NON-NLS-0$
} else {
//label matches filter, show row
- navDict.getValue(id).rowDomNode.classList.remove("hiddenRow"); //$NON-NLS-0$
+ navDict.getValue(id).rowDomNode.classList.remove("outlineRowHidden"); //$NON-NLS-0$
}
}
}