Mercurial > hg-website
annotate static/javascript/common.js @ 276:6916a7e4fbf0
base: Reset value if the user clicks into the search input field
author | David Soria Parra <dsp@php.net> |
---|---|
date | Sun, 01 Nov 2009 19:24:19 +0100 |
parents | |
children |
rev | line source |
---|---|
276
6916a7e4fbf0
base: Reset value if the user clicks into the search input field
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
1 var resetted = false; |
6916a7e4fbf0
base: Reset value if the user clicks into the search input field
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
2 function resetBar() { |
6916a7e4fbf0
base: Reset value if the user clicks into the search input field
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
3 if (!resetted) { |
6916a7e4fbf0
base: Reset value if the user clicks into the search input field
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
4 document.getElementById('keyword').value = ''; |
6916a7e4fbf0
base: Reset value if the user clicks into the search input field
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
5 resetted = true; |
6916a7e4fbf0
base: Reset value if the user clicks into the search input field
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
6 } |
6916a7e4fbf0
base: Reset value if the user clicks into the search input field
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
7 } |