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
66c8b0f
..
5470fee
100644
(file)
--- a/
templates/search/index.tpl
+++ b/
templates/search/index.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-20
09
Polytechnique.org *}
+{* Copyright (C) 2003-20
11
Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@
-47,13
+47,9
@@
{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
- var alinks = document.getElementById('content').getElementsByTagName('a');
- for (i = 0; i < alinks.length; i++) {
- if (alinks[i].className == 'popup2') {
- popWin(alinks[i], 840, 600);
- break;
- }
- }
+ $(function() {
+ $('#content a.popup2').first().click();
+ });
</script>
{/literal}{/if}
</script>
{/literal}{/if}