Replaces OK button on quick search.
authorStéphane Jacob <sj@m4x.org>
Thu, 15 Jul 2010 15:01:34 +0000 (17:01 +0200)
committerStéphane Jacob <sj@m4x.org>
Thu, 15 Jul 2010 15:01:34 +0000 (17:01 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
templates/skin/common.title.header.tpl

index 184f8f8..89a83d0 100644 (file)
                 {$globals->core->NbIns|number_format} polytechniciens sur le web
                 <form action="search" method="get">
                     <div>
+                        <button id="quick_button" type="submit" style="display: none"
+                                onclick="if ($('#quick').val() === 'Recherche dans l\'annuaire') $('#quick').val('')">
+                          OK
+                        </button>
                         <input type="text" size="20" name="quick" id="quick" class="quick_search"
                                value="{$smarty.request.quick|default:'Recherche dans l\'annuaire'}"
                                onfocus="if (this.value === 'Recherche dans l\'annuaire') this.value='';
                                         $('#quick_button').show()"
                                onblur="if (this.value === '') this.value='{$smarty.request.quick|default:'Recherche dans l\'annuaire'|escape:javascript}'"
                                />
-                        <button id="quick_button" type="submit" style="display: none"
-                                onclick="if ($('#quick').val() === 'Recherche dans l\'annuaire') $('#quick').val('')">
-                          OK
-                        </button>
                     </div>
                 </form>
                 {if $smarty.session.auth gt AUTH_PUBLIC && $smarty.session.notifs}