Commit 54d48976 authored by Fabien Morin's avatar Fabien Morin

Write "Search" in the bottom right search.

It was reported that in some web_site (like km), some people think that this field was used to login. Writing "Search" inside make not possible to think this now. (And when the field get the focus, the field make him empty to be able to receive the search text).

I try this without javascript support, and the search is usable, the only thing is that the user have to remove the default text manualy (it's the behaviour of most of the popular websites).

reviewed and approved by jm

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31536 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 50177988
...@@ -126,6 +126,8 @@ ...@@ -126,6 +126,8 @@
<fieldset id="fieldset-tiosearch">\n <fieldset id="fieldset-tiosearch">\n
<input type="hidden" name="all_languages" value="1" />\n <input type="hidden" name="all_languages" value="1" />\n
<input accesskey="4" type="text" size="40" name="field_your_search_text" class="input-text" \n <input accesskey="4" type="text" size="40" name="field_your_search_text" class="input-text" \n
value="Search" i18n:attributes="value" i18n:domain="ui"\n
onfocus="this.value=\'\';"\n
onkeypress="submitFormOnEnter(event, this.form, \'ERP5Site_viewQuickSearchResultList\');" />\n onkeypress="submitFormOnEnter(event, this.form, \'ERP5Site_viewQuickSearchResultList\');" />\n
<input type="submit" class="input-submit" value="" alt="Search"\n <input type="submit" class="input-submit" value="" alt="Search"\n
name="ERP5Site_viewQuickSearchResultList:method"/> \n name="ERP5Site_viewQuickSearchResultList:method"/> \n
......
5.4.5 5.4.3
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment