comparison 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
comparison
equal deleted inserted replaced
275:e3139f44b837 276:6916a7e4fbf0
7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8 <link href="/css/styles.css" type="text/css" rel="stylesheet"> 8 <link href="/css/styles.css" type="text/css" rel="stylesheet">
9 <script type="text/javascript" src="/javascript/typeface.js"></script> 9 <script type="text/javascript" src="/javascript/typeface.js"></script>
10 <script type="text/javascript" src="/javascript/optimer_regular.typeface.js"></script> 10 <script type="text/javascript" src="/javascript/optimer_regular.typeface.js"></script>
11 <script type="text/javascript" src="/javascript/download.js"></script> 11 <script type="text/javascript" src="/javascript/download.js"></script>
12 <script type="text/javascript" src="/javascript/common.js"></script>
12 <script language="javascript" type="text/javascript"> 13 <script language="javascript" type="text/javascript">
13 {% set download = downloads[downloads['current']] %} 14 {% set download = downloads[downloads['current']] %}
14 var dl = new Download(); 15 var dl = new Download();
15 dl.register_download('Windows', "{{ download['Windows']}}"); 16 dl.register_download('Windows', "{{ download['Windows']}}");
16 dl.register_download('Mac OS X', "{{ download['Mac OS X 10.6']}}"); 17 dl.register_download('Mac OS X', "{{ download['Mac OS X 10.6']}}");
37 <input type="hidden" name="context" value="180"> 38 <input type="hidden" name="context" value="180">
38 <fieldset> 39 <fieldset>
39 <legend>Search form</legend> 40 <legend>Search form</legend>
40 <label for="keyword">keyword</label> 41 <label for="keyword">keyword</label>
41 <input class="text" type="text" name="value" 42 <input class="text" type="text" name="value"
42 value="Search the Wiki" id="keyword"> 43 value="Search the Wiki" id="keyword" onclick="resetBar();">
43 <input class="submit" type="submit" value="Title" 44 <input class="submit" type="submit" value="Title"
44 name="titlesearch" alt="Search Titles"> 45 name="titlesearch" alt="Search Titles">
45 </fieldset> 46 </fieldset>
46 </form> 47 </form>
47 48