projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes CP and entreprise name in addresses dump.
[platal.git]
/
templates
/
search
/
index.tpl
diff --git
a/templates/search/index.tpl
b/templates/search/index.tpl
index
904e6ed
..
5470fee
100644
(file)
--- a/
templates/search/index.tpl
+++ b/
templates/search/index.tpl
@@
-47,8
+47,8
@@
{if $search_results_nb eq 1}{literal}
<script type="text/javascript">
// popup automatically if only one result
{if $search_results_nb eq 1}{literal}
<script type="text/javascript">
// popup automatically if only one result
- $(
document).ready(
function() {
- $('#content a.popup2').click();
+ $(function() {
+ $('#content a.popup2').
first().
click();
});
</script>
{/literal}{/if}
});
</script>
{/literal}{/if}