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
93d1855
..
5470fee
100644
(file)
--- a/
templates/search/index.tpl
+++ b/
templates/search/index.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-20
08
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 *}
@@
-21,7
+21,7
@@
{**************************************************************************}
{**************************************************************************}
-{if $formulaire eq 0 and !$
xorg_errors|count
}
+{if $formulaire eq 0 and !$
pl_errors
}
{if !$simple}
{if !$advanced}
{include file=search/quick.form.tpl show_js=1}
{if !$simple}
{if !$advanced}
{include file=search/quick.form.tpl show_js=1}
@@
-29,8
+29,8
@@
{include file=search/adv.links.tpl do_title=1 with_soundex=$with_soundex}
{/if}
{/if}
{include file=search/adv.links.tpl do_title=1 with_soundex=$with_soundex}
{/if}
{/if}
-
- {include
file='core/plset.tpl'
}
+
+ {include
core=plset.tpl
}
{if $search_pages_nb > 1}
<p>
{if $search_pages_nb > 1}
<p>
@@
-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}