{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2011 Polytechnique.org *}
+{* Copyright (C) 2003-2013 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{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}