]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/webapps/help/search.js
webapps.help: onload javascript to check radio
[factor.git] / extra / webapps / help / search.js
diff --git a/extra/webapps/help/search.js b/extra/webapps/help/search.js
new file mode 100644 (file)
index 0000000..674a7bc
--- /dev/null
@@ -0,0 +1,6 @@
+window.onload = function() {
+    var radios = document.getElementsByClassName("radiotab");
+    if (radios.length > 0) {
+        radios[0].checked = true;
+    }
+}