diff toolbox/static/js/main.js @ 0:b0942f44413f

import from git://github.com/mozilla/toolbox.git
author Jeff Hammel <k0scist@gmail.com>
date Sun, 11 May 2014 09:15:35 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/toolbox/static/js/main.js	Sun May 11 09:15:35 2014 -0700
@@ -0,0 +1,6 @@
+// focus the search element
+$(document).ready(function() {
+    if (!location.hash.length) {
+        $('#search-text').focus();
+    }
+});