Code

Added focus fix
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Apr 2006 08:27:07 +0000 (08:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Apr 2006 08:27:07 +0000 (08:27 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2954 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/workstation.tpl

index 76929161b394666a700bd8ab2eecbc0d91cabfee..d6ea1c5395d208e417726de7c4b3252637bf8470 100644 (file)
  </tr>
 </table>
 
-
+ {if $cn eq 'wdefault'}
 <!-- Place cursor -->
-<script language="JavaScript" type="text/javascript">
-  <!-- // First input field on page
-  document.mainform.cn.focus();
-  -->
-</script>
+               <script language="JavaScript" type="text/javascript">
+                 <!-- // First input field on page
+                 document.mainform.l.focus();
+                 -->
+               </script>
+     {else}
+               <script language="JavaScript" type="text/javascript">
+                 <!-- // First input field on page
+                 document.mainform.cn.focus();
+                 -->
+               </script>
+     {/if}
+