[dev] Turba: [patch]

Marc Jauvin marc at register4less.com
Thu Sep 4 09:13:39 PDT 2003


Please, use this new patch instead, the placement of the js_onload variable was
incorrect.

Thanks.


Marc Jauvin <marc at register4less.com> wrote:

> This patch sets the focus in the search box when the page view is in "Browse"
> while in search mode.
>
> Please, commit.
>
> Thanks.
>
> --
> Marc Jauvin
> http://register4less.com
> 450-441-5458
>


--
Marc Jauvin
http://register4less.com
450-441-5458
-------------- next part --------------
Index: browse.php
===================================================================
RCS file: /repository/turba/browse.php,v
retrieving revision 1.42
diff -u -r1.42 browse.php
--- browse.php  3 Sep 2003 17:42:55 -0000       1.42
+++ browse.php  4 Sep 2003 16:12:09 -0000
@@ -244,6 +244,7 @@

         $title =_("Search Results");
         $listType = 'search';
+        $js_onLoad = 'document.directory_search.val.focus();';

         require_once TURBA_BASE . '/lib/ListView.php';
         $display = &new Turba_ListView($results, TURBA_TEMPLATES . '/browse/contactrow.inc');


More information about the dev mailing list