projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevents error display on new empty job.
[platal.git]
/
templates
/
skin
/
common.title.header.tpl
diff --git
a/templates/skin/common.title.header.tpl
b/templates/skin/common.title.header.tpl
index
89a83d0
..
64e6bfd
100644
(file)
--- a/
templates/skin/common.title.header.tpl
+++ b/
templates/skin/common.title.header.tpl
@@
-30,6
+30,11
@@
</td>
<td class="inscrits">
{$globals->core->NbIns|number_format} polytechniciens sur le web
</td>
<td class="inscrits">
{$globals->core->NbIns|number_format} polytechniciens sur le web
+ {if t($smarty.request.quick)}
+ {assign var=requestQuick value=$smarty.request.quick}
+ {else}
+ {assign var=requestQuick value="Recherche dans l'annuaire"}
+ {/if}
<form action="search" method="get">
<div>
<button id="quick_button" type="submit" style="display: none"
<form action="search" method="get">
<div>
<button id="quick_button" type="submit" style="display: none"
@@
-37,10
+42,10
@@
OK
</button>
<input type="text" size="20" name="quick" id="quick" class="quick_search"
OK
</button>
<input type="text" size="20" name="quick" id="quick" class="quick_search"
- value="{$
smarty.request.quick|default:'Recherche dans l\'annuaire'
}"
+ value="{$
requestQuick
}"
onfocus="if (this.value === 'Recherche dans l\'annuaire') this.value='';
$('#quick_button').show()"
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}'"
+ onblur="if (this.value === '') this.value='{$
requestQuick
|escape:javascript}'"
/>
</div>
</form>
/>
</div>
</form>