Bug 438076 - Replace Global Search Page (search.html) with Inline Search in Edit Page (edit.html)
- Open side panel if global search is triggered while it is collapsed
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/widgets/nav/common-nav.js b/bundles/org.eclipse.orion.client.ui/web/orion/widgets/nav/common-nav.js
index 159c1c4..db0e705 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/widgets/nav/common-nav.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/widgets/nav/common-nav.js
@@ -495,9 +495,13 @@
 				name: messages["Global Search"], //$NON-NLS-0$
 				id: "orion.openInlineSearchPane", //$NON-NLS-0$
 				visibleWhen: function() {
-					return true;	
+					return true;
 				},
 				callback: function (data) {
+					var mainSplitter = mGlobalCommands.getMainSplitter();
+					if (mainSplitter.splitter.isClosed()) {
+						mainSplitter.splitter.toggleSidePanel();
+					}
 					this._inlineSearchPane.show();
 					this._inlineSearchPane.showSearchOptions();
 				}.bind(this)