Code

Udpated JS focus,
[gosa.git] / plugins / gofon / fonreports / contents.tpl
index f3641085e7eabd595266ea7d5949342ba5fc20cc..bd8f503fdd74b5f94d73cf121e43eabc1309c2db 100644 (file)
@@ -24,7 +24,7 @@
 
 <br>
 
-{if $search_result ne ""}
+{if $search_result }
  <table style="width:100%; vertical-align:top; text-align:left; border:1px solid #B0B0B0;" cellpadding=2 cellspacing=1 border=0 rules="cols" summary="">
   <tr style="background-color: #E8E8E8; height:26px; font-weight:bold">
    <td><a href="main.php{$plug}&amp;sort=0">{t}Date{/t} {$mode0}</a></td>
@@ -54,6 +54,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.search_for.focus();
+       focus_field('search_for');
   -->
 </script>