summaryrefslogtreecommitdiff
path: root/rt/share/html/Elements/SimpleSearch
diff options
context:
space:
mode:
Diffstat (limited to 'rt/share/html/Elements/SimpleSearch')
-rwxr-xr-xrt/share/html/Elements/SimpleSearch5
1 files changed, 4 insertions, 1 deletions
diff --git a/rt/share/html/Elements/SimpleSearch b/rt/share/html/Elements/SimpleSearch
index d6287f1..7db2aca 100755
--- a/rt/share/html/Elements/SimpleSearch
+++ b/rt/share/html/Elements/SimpleSearch
@@ -46,8 +46,11 @@
%#
%# 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="<% $Placeholder %>..." onfocus="if (this.value==(<% $Placeholder, |n,j %>+'...')) this.value=''" />
+ <input size="12" name="q" accesskey="0" class="field" value="<% $value %>" placeholder="<% $Placeholder %>..." />
</form>
+<%init>
+my $value = defined $DECODED_ARGS->{q} ? $DECODED_ARGS->{q} : '';
+</%init>
<%ARGS>
$SendTo => '/Search/Simple.html'
$Placeholder => loc('Search')