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

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