{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2011 Polytechnique.org *}
+{* Copyright (C) 2003-2014 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}
{/if}
-{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
+{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}