[Rt-commit] rt branch, 4.0/simplesearch-placeholder-text, created. rt-4.0.19-7-g43f534a

Kevin Falcone falcone at bestpractical.com
Thu Feb 6 11:00:37 EST 2014


The branch, 4.0/simplesearch-placeholder-text has been created
        at  43f534acdb227a8f56c31434e763bf307440faf7 (commit)

- Log -----------------------------------------------------------------
commit 43f534acdb227a8f56c31434e763bf307440faf7
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Wed Feb 5 14:26:44 2014 -0500

    Make it possible to use Simplesearch with a different placeholder text
    
    While RT uses Search, RTIR wants to use Search incidents

diff --git a/share/html/Elements/SimpleSearch b/share/html/Elements/SimpleSearch
index bd8a876..d9f34fa 100644
--- a/share/html/Elements/SimpleSearch
+++ b/share/html/Elements/SimpleSearch
@@ -46,8 +46,9 @@
 %#
 %# END BPS TAGGED BLOCK }}}
 <form action="<% RT->Config->Get('WebPath') %><% $SendTo %>" 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=''" />
+  <input size="12" name="q" autocomplete="off" accesskey="0" class="field" value="<% $Placeholder %>..." onfocus="if (this.value==(<% $Placeholder, |n,j %>+'...')) this.value=''" />
 </form>
 <%ARGS>
 $SendTo => '/Search/Simple.html'
+$Placeholder => loc('Search')
 </%ARGS>

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


More information about the rt-commit mailing list