[geeklog-hg] geeklog: Denim: avoid the use of the placeholder attribute which...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Tue Sep 4 05:47:46 EDT 2012
changeset 8798:57b0b3e5d986
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/57b0b3e5d986
user: dengen
date: Tue Sep 04 18:46:59 2012 +0900
description:
Denim: avoid the use of the placeholder attribute which is new in HTML5
diffstat:
public_html/layout/denim/leftblocks.thtml | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r d0001ff91d7c -r 57b0b3e5d986 public_html/layout/denim/leftblocks.thtml
--- a/public_html/layout/denim/leftblocks.thtml Tue Sep 04 17:12:09 2012 +0900
+++ b/public_html/layout/denim/leftblocks.thtml Tue Sep 04 18:46:59 2012 +0900
@@ -9,7 +9,9 @@
<fieldset class="noborder_fieldset">
<legend class="hidden_legend">{button_search}</legend>
<div class="searchform">
- <input type="text" class="search" size="16" maxlength="255" name="query" placeholder="{button_search}"{xhtml}>
+ <input type="text" class="search" size="16" maxlength="255" value="{button_search}" name="query"
+ onfocus="if (this.value == '{button_search}') this.value = ''"
+ onblur="if (this.value == '') this.value = '{button_search}'"{xhtml}>
<input type="submit" value="{button_search}" class="submit" style="display:none;"{xhtml}>
<input type="hidden" value="all" name="type"{xhtml}>
<input type="hidden" value="all" name="keyType"{xhtml}>
More information about the geeklog-cvs
mailing list