annotate static/javascript/common.js @ 298:dd116d3107d8

downloads: Downloads for Mercurial 1.4.2
author David Soria Parra <dsp@php.net>
date Tue, 05 Jan 2010 22:06:59 +0100
parents 6916a7e4fbf0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 }