# HG changeset patch # User David Soria Parra # Date 1257099859 -3600 # Node ID 6916a7e4fbf09ad7bacb61962c79f52ddd6aed9b # Parent e3139f44b8376d2426a8fff5e12e308e0c762390 base: Reset value if the user clicks into the search input field diff -r e3139f44b837 -r 6916a7e4fbf0 .hgsubstate --- a/.hgsubstate Wed Oct 28 22:56:21 2009 +0100 +++ b/.hgsubstate Sun Nov 01 19:24:19 2009 +0100 @@ -1,2 +1,2 @@ -bdc8c15f5ce113b288f38ebf0b8cc2fe456c89a3 content -682e552ec279b13f1f4e9bc020c964f2d26cd9f4 rendered +fb4a8d01ba683a7b64f2e52979795693b78c777c content +77cc59d1fe754200b34d8b70c422538eb3c7c878 rendered diff -r e3139f44b837 -r 6916a7e4fbf0 static/javascript/common.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/static/javascript/common.js Sun Nov 01 19:24:19 2009 +0100 @@ -0,0 +1,7 @@ +var resetted = false; +function resetBar() { + if (!resetted) { + document.getElementById('keyword').value = ''; + resetted = true; + } +} diff -r e3139f44b837 -r 6916a7e4fbf0 templates/base.html --- a/templates/base.html Wed Oct 28 22:56:21 2009 +0100 +++ b/templates/base.html Sun Nov 01 19:24:19 2009 +0100 @@ -9,6 +9,7 @@ +