diff options
author | Yorhel <git@yorhel.nl> | 2015-11-01 14:28:07 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2015-11-01 14:28:07 +0100 |
commit | bf391c804fbbd6469d2e2892c29f98cc7204d251 (patch) | |
tree | 2659133a79f2ac85e501dc6f39a270f92d9c8cfe /lib | |
parent | 86d6c5744c4aa208ee22eafb16b9dbe973bb5521 (diff) |
Use HTML5 'placeholder' attribute for main search box
Instead of the JS hack.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNDB/Util/LayoutHTML.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm index fcd26346..505d03a8 100644 --- a/lib/VNDB/Util/LayoutHTML.pm +++ b/lib/VNDB/Util/LayoutHTML.pm @@ -76,7 +76,7 @@ sub _menu { form action => '/v/all', method => 'get', id => 'search'; fieldset; legend 'Search'; - input type => 'text', class => 'text', id => 'sq', name => 'sq', value => $o{search}||mt('_menu_emptysearch'); + input type => 'text', class => 'text', id => 'sq', name => 'sq', value => $o{search}, placeholder => mt('_menu_emptysearch'); input type => 'submit', class => 'submit', value => 'Search'; end; end; |