]> git.uio.no Git - usit-rt.git/blobdiff - share/html/Elements/SimpleSearch
Putting 4.2.0 on top of 4.0.17
[usit-rt.git] / share / html / Elements / SimpleSearch
index 6d9bce84cdfc1fea462cd344dff198c3ad9a4520..1936cea449ede0858df901a63465d89828e1800e 100644 (file)
 %#
 %# 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" accesskey="0" class="field" value="<% $value %>" placeholder="<% loc('Search') %>..." />
 </form>
+<%init>
+my $value = defined $DECODED_ARGS->{q} ? $DECODED_ARGS->{q} : '';
+</%init>
 <%ARGS>
 $SendTo => '/Search/Simple.html'
 </%ARGS>