annotate static/js/common.js @ 482:1188817fdf3a

downloads: indent onload function 4 spaces like the rest of the code
author Kevin Bullock <kbullock+mercurial@ringworld.org>
date Sun, 14 May 2017 22:01:40 -0500
parents 59e0087c784a
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 }