diff 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 diff
--- /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;
+    }
+}