view 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
line wrap: on
line source

var resetted = false;
function resetBar() {
    if (!resetted) {
        document.getElementById('keyword').value = '';
        resetted = true;
    }
}