Code

Added JS to select first input field for alle edit tempaltes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Feb 2006 12:11:17 +0000 (12:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Feb 2006 12:11:17 +0000 (12:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2747 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/glpi.tpl
plugins/admin/systems/glpiAttachmentEdit.tpl
plugins/admin/systems/glpiManufacturerAdd.tpl
plugins/admin/systems/glpiPrinterCartridgesEdit.tpl
plugins/admin/systems/glpi_edit_cartridge_type.tpl
plugins/admin/systems/glpi_edit_os.tpl
plugins/admin/systems/glpi_edit_printer_type.tpl
plugins/admin/systems/glpi_edit_type.tpl

index 77fa15f5367d124b0f6173c841353785ac1aa67c..b71261a25e446622a7ffd3285fa5d7d8c7f87971 100644 (file)
        </tr>
 </table>
 <input type="hidden" name="glpi_tpl_posted" value="1">
+<script language="JavaScript" type="text/javascript">
+  <!-- // First input field on page
+  document.mainform.type.focus();
+  -->
+</script></td></tr></table><p style="text-align:right">
index 3b33cf68bd0d9f00ae103b6076716e5ffa1b6530..f9867ddbd92f2a8a649c582f7327f6f90036c6d6 100644 (file)
@@ -70,3 +70,9 @@
                <input type="submit" name="CancelAttachment"    value="{t}Cancel{/t}">
        </p>
 </div>
+<script language="JavaScript" type="text/javascript">
+  <!-- // First input field on page
+  document.mainform.name.focus();
+  -->
+</script>
+
index 53a432bbaf70b86848e25c585ab59372ed0d4581..980138a48f478866c763e1c497bec3096eb42d1b 100644 (file)
@@ -81,3 +81,9 @@
        <input name="close_manufacturer" value="{t}Close{/t}" type="submit">
 </p>
 </div>
+<script language="JavaScript" type="text/javascript">
+  <!-- // First input field on page
+  document.mainform.name.focus();
+  -->
+</script>
+
index e740afab910104e05796d990bb47ef3ee4c236dd..894af570d1e853857160b6c52fc1c569570d653c 100644 (file)
@@ -75,3 +75,9 @@
                <input type="submit" name="CancelCartridge" value="{t}Cancel{/t}"><br>
        </p>
 </div>
+<script language="JavaScript" type="text/javascript">
+  <!-- // First input field on page
+  document.mainform.name.focus();
+  -->
+</script>
+
index d652e4ccd8c750ea712ae18b995f886ff0c8e4b2..0d640bbb5d076583f08f0444b50fa979aa31c67c 100644 (file)
@@ -13,3 +13,9 @@
 <input name="close_edit_type_cartridge" value="{t}Close{/t}" type="submit">
 </p>
 </div>
+<script language="JavaScript" type="text/javascript">
+  <!-- // First input field on page
+  document.mainform.cartridge_type_string.focus();
+  -->
+</script>
+
index 2f141b52778b40e85f477f28f6bbaefe96e9b4ee..6db21ce609aa488d11c0bf4b32300779f9701b44 100644 (file)
@@ -13,3 +13,9 @@
 <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>
+
index f98fac876983cce7572845c69f07d1d8c578568c..108a6c2a71e93722aeaf8570cbc5f7ec9343b011 100644 (file)
@@ -13,3 +13,9 @@
 <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>
+
index 0e18cefe495c8130dd96eddf5013a80100225738..bab7e5f8785ee98d997d8cdd4ed5afcd67b5a9a8 100644 (file)
@@ -13,3 +13,8 @@
 <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>