Merge remote branch 'origin/xorg/maint' into xorg/master
[platal.git] / templates / search / index.tpl
index 904e6ed..5470fee 100644 (file)
@@ -47,8 +47,8 @@
   {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}