Code

Added focus
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Feb 2006 12:46:44 +0000 (12:46 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Feb 2006 12:46:44 +0000 (12:46 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2767 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/glpi_edit_os.tpl
plugins/admin/systems/glpi_edit_printer_type.tpl
plugins/admin/systems/glpi_edit_type.tpl

index 6ccdb09c8034af735a04474a999e15a2b9f25a39..892490acc88c9e503c3bbff6c5b3bd9a686dbdfd 100644 (file)
 <input name="close_edit_os" value="{t}Close{/t}" type="submit">
 </p>
 </div>
+<script language="JavaScript" type="text/javascript">
+  <!-- // First input field on page
+  document.mainform.is_string.focus();
+  -->
+</script>
 {else}
 {t}Please enter a new name{/t}&nbsp;<input name="string" value="{$string}">
 <p class="seperator">&nbsp;</p>
             <input type="submit" name="Rename_Cancel"   value="{t}Cancel{/t}" >
         </div>
     </p>
-{/if}
-
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.is_string.focus();
+  document.mainform.string.focus();
   -->
 </script>
+{/if}
+
 
index 3e3bf2d3ac920553e7dedfeb3e5135462ebc8c78..90dd9c054f72e158526276bc1acfe87e7b16ce75 100644 (file)
                        <input name="close_edit_type" value="{t}Close{/t}" type="submit">
                </p>
        </div>
+       <script language="JavaScript" type="text/javascript">
+         <!-- // First input field on page
+         document.mainform.type_string.focus();
+         -->
+       </script>
+
 {else}
 
        {t}Please enter a new name{/t}&nbsp;<input name="string" value="{$string}">
             <input type="submit" name="Rename_Cancel"   value="{t}Cancel{/t}" >
         </div>
     </p>
-{/if}
+       <script language="JavaScript" type="text/javascript">
+         <!-- // First input field on page
+         document.mainform.string.focus();
+         -->
+       </script>
 
-<script language="JavaScript" type="text/javascript">
-  <!-- // First input field on page
-  document.mainform.type_string.focus();
-  -->
-</script>
+{/if}
 
index 69577736b27f150a4404795244c4dc09043f4a09..bc24ce30555d11bc91d951a2858ad815d69228bf 100644 (file)
@@ -9,12 +9,17 @@
         <input type="submit" name="rename_type"        value="{t}Rename{/t}" >
         <input type="submit" name="del_type"           value="{t}Delete{/t}" >
 
-<p class="seperator">&nbsp;</p>
-<div align="right">
-<p>
-<input name="close_edit_type" value="{t}Close{/t}" type="submit">
-</p>
-</div>
+       <p class="seperator">&nbsp;</p>
+       <div align="right">
+       <p>
+       <input name="close_edit_type" value="{t}Close{/t}" type="submit">
+       </p>
+       </div>
+       <script language="JavaScript" type="text/javascript">
+         <!-- // First input field on page
+         document.mainform.type_string.focus();
+         -->
+       </script>
 {else}
 {t}Please enter a new name{/t}&nbsp;<input name="string" value="{$string}">
 <p class="seperator">&nbsp;</p>
@@ -24,9 +29,9 @@
                        <input type="submit" name="Rename_Cancel"       value="{t}Cancel{/t}" >
                </div>
        </p>
+       <script language="JavaScript" type="text/javascript">
+       <!-- // First input field on page
+       document.mainform.string.focus();
+       -->
+       </script>
 {/if}
-<script language="JavaScript" type="text/javascript">
-  <!-- // First input field on page
-  document.mainform.type_string.focus();
-  -->
-</script>