[dev] turba: [patch]

Marc Jauvin marc at register4less.com
Mon Jul 21 19:51:39 PDT 2003


This patch sets the focus to the "matching" field on the search page.

--
Marc Jauvin
http://register4less.com
450-441-5458
-------------- next part --------------
Index: search.php
===================================================================
RCS file: /repository/turba/search.php,v
retrieving revision 1.80
diff -u -r1.80 search.php
--- search.php  22 May 2003 19:42:43 -0000      1.80
+++ search.php  22 Jul 2003 02:50:17 -0000
@@ -68,6 +68,8 @@
     }
 }

+$js_onLoad = 'setFocus()';
+
 require TURBA_TEMPLATES . '/common-header.inc';
 Turba::menu();
 require TURBA_TEMPLATES . '/browse/search.inc';
Index: templates/browse/search.inc
===================================================================
RCS file: /repository/turba/templates/browse/search.inc,v
retrieving revision 1.2
diff -u -r1.2 search.inc
--- templates/browse/search.inc 5 Feb 2003 03:03:55 -0000       1.2
+++ templates/browse/search.inc 22 Jul 2003 02:50:18 -0000
@@ -47,6 +47,12 @@
         }
     }
 }
+
+function setFocus()
+{
+    document.directory_search.val.focus();
+}
+
 //-->
 </script>



More information about the dev mailing list