Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update upload/catalog/view/theme/default/template/common/header.tpl #296

Merged
merged 1 commit into from
Dec 23, 2012

Conversation

rokdazone
Copy link
Contributor

Now when the DOCTYPE is HTML5, better if we use the placeholder attribute
instead on inline javascipt for the "Search" text in search field.

Does not work in IE yet, but it's not a must have feature anyway. 
This allows for cleaner HTML-code with no JavaScript.
It also solves another problem, when you accidently search on the
phrase "Search" itself, that can happen sometimes.

EDIT: If IE-support is a must, there is always possible to check for
placeholder support with JavaScript, preferebly a function in the common.js
More info: http://davidwalsh.name/html5-placeholder
   

Now when the doctype is HTML5, better if we use the placeholder attribute instead on inline javascipt for the "Search"text in search field.
Does not work in IE yet, but it's not a must have feature anyway. This allows for cleaner HTML-code with no JavaScript, it also solves another
problem, when you accidently search on the phrase "Search" itself, that can happen sometimes.
   
opencart pushed a commit that referenced this pull request Dec 23, 2012
Update upload/catalog/view/theme/default/template/common/header.tpl
@opencart opencart merged commit ca2a1d4 into opencart:master Dec 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants