Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2009-09-17 17:47:01 +0000
committerChris Goldthorpe2009-09-17 17:47:01 +0000
commit0906262aca635cce66ad5c69ac4b3b49ae49aa9f (patch)
treeec0ccbff5461bbc9cc8570504920a869699466d0 /org.eclipse.ua.tests/script
parentd6523b15009c1f29306fc7cf6a5523b28628cb91 (diff)
downloadeclipse.platform.ua-0906262aca635cce66ad5c69ac4b3b49ae49aa9f.tar.gz
eclipse.platform.ua-0906262aca635cce66ad5c69ac4b3b49ae49aa9f.tar.xz
eclipse.platform.ua-0906262aca635cce66ad5c69ac4b3b49ae49aa9f.zip
Bug 287712 – [Webapp] Allow additional buttons to be added to the help webapp
Diffstat (limited to 'org.eclipse.ua.tests/script')
-rw-r--r--org.eclipse.ua.tests/script/titlesearch.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/org.eclipse.ua.tests/script/titlesearch.js b/org.eclipse.ua.tests/script/titlesearch.js
new file mode 100644
index 000000000..e8cca7108
--- /dev/null
+++ b/org.eclipse.ua.tests/script/titlesearch.js
@@ -0,0 +1,37 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+
+ var lastView = 'toc';
+
+function toggleTitleView(button){
+ //window.parent.parent.toggleShowAll();
+ if (button && document.getElementById(button)){
+ document.getElementById(button).blur();
+ }
+ var navFrame = parent.parent.NavFrame;
+
+ if (isOn()) {
+ setButtonState("tsearch", false);
+ navFrame.showView("toc");
+ } else {
+ setButtonState("tsearch", true);
+ navFrame.showView("titlesearch");
+ }
+}
+
+function isOn() {
+ var control = document.getElementById("tdb_tsearch");
+ if(!control) {
+ alert('No Control found' + buttonName);
+ return false;
+ }
+ return control.className == "buttonOn";
+}

Back to the top