annotate static/js/common.js @ 483:0978d4880577

downloads: skip trying to fill in button if it's not there
author Kevin Bullock <kbullock+mercurial@ringworld.org>
date Sun, 14 May 2017 21:15:12 -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 }