diff templates/base.html @ 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 f255cc055e78
children 2fec3d251660 6a2a8d386278
line wrap: on
line diff
--- 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 @@
         <script type="text/javascript" src="/javascript/typeface.js"></script>
         <script type="text/javascript" src="/javascript/optimer_regular.typeface.js"></script>
         <script type="text/javascript" src="/javascript/download.js"></script>
+        <script type="text/javascript" src="/javascript/common.js"></script>
         <script language="javascript" type="text/javascript">
         {% set download = downloads[downloads['current']] %}
          var dl = new Download();
@@ -39,7 +40,7 @@
                 <legend>Search form</legend>
                 <label for="keyword">keyword</label>
                 <input class="text" type="text" name="value"
-                value="Search the Wiki" id="keyword">
+                value="Search the Wiki" id="keyword" onclick="resetBar();">
                 <input class="submit" type="submit" value="Title"
                 name="titlesearch" alt="Search Titles"> 
             </fieldset>