[Rt-commit] rt branch, 3.999-trunk, updated. 1e3b7682308635b96d439c73ffb0ee8d82bdfad8

jesse jesse at bestpractical.com
Thu Nov 19 13:20:38 EST 2009


The branch, 3.999-trunk has been updated
       via  1e3b7682308635b96d439c73ffb0ee8d82bdfad8 (commit)
       via  32f74d8b069094148ca41ca32000c3776ffd6860 (commit)
      from  2c571e9fd863100f8c156820efecabffd7d38a8a (commit)

Summary of changes:
 share/html/Elements/SimpleSearch |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit 32f74d8b069094148ca41ca32000c3776ffd6860
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Thu Nov 19 13:20:05 2009 -0500

    Forward port 3.8's SimpleSearch

diff --git a/share/html/Elements/SimpleSearch b/share/html/Elements/SimpleSearch
index 3bf7d65..f6f69d2 100755
--- a/share/html/Elements/SimpleSearch
+++ b/share/html/Elements/SimpleSearch
@@ -2,7 +2,7 @@
 %# 
 %# COPYRIGHT:
 %# 
-%# This software is Copyright (c) 1996-2008 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC
 %#                                          <jesse at bestpractical.com>
 %# 
 %# (Except where explicitly superseded by other copyright notices)
@@ -45,7 +45,6 @@
 %# those contributions and any derivatives thereof.
 %# 
 %# END BPS TAGGED BLOCK }}}
-<form action="<% RT->config->get('web_path') %>/Search/Simple.html" id="simple-search">
-  <input size="12" name="q" autocomplete="off" accesskey="0" class="field" />
-  <input type="submit" class="button" value="<% _('Search') %>" />
+<form action="<% RT->Config->Get('WebPath') %>/Search/Simple.html" id="simple-search">
+  <input size="12" name="q" autocomplete="off" accesskey="0" class="field" value="<&|/l&>Search</&>..." onfocus="if (this.value=='<&|/l&>Search</&>...') this.value=''" />
 </form>

commit 1e3b7682308635b96d439c73ffb0ee8d82bdfad8
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Thu Nov 19 13:20:17 2009 -0500

    Upgrade SimpleSearch to 3.999 APIs, add an onblur

diff --git a/share/html/Elements/SimpleSearch b/share/html/Elements/SimpleSearch
index f6f69d2..939b1c6 100755
--- a/share/html/Elements/SimpleSearch
+++ b/share/html/Elements/SimpleSearch
@@ -45,6 +45,10 @@
 %# those contributions and any derivatives thereof.
 %# 
 %# END BPS TAGGED BLOCK }}}
-<form action="<% RT->Config->Get('WebPath') %>/Search/Simple.html" id="simple-search">
-  <input size="12" name="q" autocomplete="off" accesskey="0" class="field" value="<&|/l&>Search</&>..." onfocus="if (this.value=='<&|/l&>Search</&>...') this.value=''" />
+<form action="<% RT->config->get('web_path') %>/Search/Simple.html" id="simple-search">
+  <input size="12" name="q" autocomplete="off" accesskey="0" class="field" value="<% _('Search') %>..." 
+    onfocus="if (this.value=='<%_('Search')%>...') this.value=''"
+    onblur="if (this.value=='') this.value='<%_('Search')%>...'"
+
+ />
 </form>

-----------------------------------------------------------------------


More information about the Rt-commit mailing list