summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bd326be)
raw | patch | inline | side by side (parent: bd326be)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 6 Jul 2007 13:12:44 +0000 (13:12 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 6 Jul 2007 13:12:44 +0000 (13:12 +0000) |
works with IE now
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6762 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6762 594d385d-05f5-0310-b6e9-bd551577e9d8
89 files changed:
diff --git a/html/include/focus.js b/html/include/focus.js
index 14452204ccf21387707ae4ebbba5c48faf4d7512..99e73b14c1c847d0f97eeab6b77ee34b569f6f8b 100644 (file)
--- a/html/include/focus.js
+++ b/html/include/focus.js
}
}
+
+
+/* Set focus to first valid input field
+ avoid IExplorer warning about hidding or disabled fields
+*/
+function focus_field()
+{
+ var i = 0;
+ while(focus_field.arguments[i] && document.getElementById(focus_field.arguments[i]).disabled == true) {
+ i++;
+ }
+ if(focus_field.arguments[i]){
+
+ var name = focus_field.arguments[i];
+ var element = document.getElementsByName(name);
+
+ for(i = 0; i < element.length; i++) {
+ if(element[i].id == name && (
+ element[i].type != 'none' ||
+ element[i].type != 'hidden')
+ ) {
+ element[i].blur();
+ element[i].focus();
+ break;
+ }
+ }
+ }
+}
+
+
+
+
+
// vim:ts=2:syntax
index dfae8a0e86b180d3b7b2f3b9951346a714614508..b5af27b4ecbbb91913c1127bf63fbad85807d881 100644 (file)
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
nextfield= "{$nextfield}";
- document.mainform.{$nextfield}.focus();
+ focus_field({$nextfield});
-->
</script>
index 39fbd1b81cba6663e2968dc808a0138923b1b71f..239b8fc9f8c5a452a13daae769117e5d24f1ed4c 100644 (file)
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
nextfield= "{$nextfield}";
- document.mainform.{$nextfield}.focus();
+ focus_field({$nextfield});
-->
</script>
index 82c3e42bc237259ff9b0ed27e59de56835ae6239..2c91d5649c4e1936b452548236ef0201c36982ee 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
-document.mainform.search_string.focus();
+ focus_field('search_string');
-->
</script>
index e6c20cde7cf77cfa01bbdf322c4d4b9b0c04c22a..900c2b9197934175a1886e590e32d9491adbfb45 100644 (file)
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
nextfield= "{$nextfield}";
- document.mainform.{$nextfield}.focus();
+ focus_field({$nextfield});
-->
</script>
index 55bcb5eaa7fca33f15cdee2ca9d691a0441f3e9c..687c6824264b1dc313c0c55b620046a894f0c991 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.dummy.focus();
+ focus_field('dummy');
-->
</script>
index 42737169e405fad48c87e282f56ef18ddcabf4e4..fa44081c0393321da090ed8ac951386166fc9648 100644 (file)
<input type='submit' name='create_script_cancel' value='{t}Cancel{/t}'>
</div>
<script language="JavaScript" type="text/javascript">
- document.mainform.NewScriptName.focus();
+ <!--
+ focus_field('NewScriptName');
+ -->
</script>
index 3e61376feb52327507e9c4a94b1fe88f8292d7c2..6e134e02551e1fbf3445d9446dadbd5801dd651f 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.search_for.focus();
+ focus_field('search_for');
-->
</script>
index c280434649f8d6d1893f565438cc465c39d67a39..4f3ded4d2c2a944baecd2793df363c86107b437e 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.ou.focus();
+ focus_field('ou');
-->
</script>
index bb62fc3ef4732b8b1192c7951d1c514457254278..4d52e0714a7a4da2b9f11b5c5fd7f94e8ff17688 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.search_for.focus();
+ focus_field('search_for');
-->
</script>
index b0957213c9eec306cc38f5994a50eaaa523fb971..bfaa2a4204c623f19b040eda6587aac00774250b 100644 (file)
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.search_for.focus();
+ focus_field('search_for');
-->
</script>
index 3d59692e4ceda65ee92c49928e46687d0c7c8fa9..6c46c2bc96e149b5ab0079c98dcdaa4be4e7e7a2 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn');
-->
</script>
index 368506f815b989a830264b1dbda7d4820eed8f8d..07c3d11ed704eaf0dc3160603fef8cbf096886ca 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.ou.focus();
+ focus_field('ou');
-->
</script>
index b6a996707a61fcc4dfb4328d4f943b9a35349030..24165775159dfbdad85be4ad6ba3fe0d56128bde 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!--
- document.mainform.UseTextInputName.select();
- document.mainform.UseTextInputName.focus();
+ focus_field('UseTextInputName');
-->
</script>
index 03e62c361b4f484d4ef8b5b2c6834c8821d5559a..0a97e714b513d3767f0e03c18a8acc93a7821afe 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.description.focus();
+ focus_field('cn','description');
-->
</script>
index ad25455ce0f51fa7594c614c8323b29df3c78ce4..76537fdb77aebd343a7646c4050813baa07726e6 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn','description');
-->
</script>
index 322f98ef2b0158461eae56a1a5a7c5bb1a37b7f2..358f6d0c1b8b743870175eff0309abe1cb26ae7f 100755 (executable)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!--
- document.mainform.BranchName.select();
- document.mainform.BranchName.focus();
+ focus_field('BranchName');
-->
</script>
{else}
index 22ff23032b621239631ca06984ee4632ff9fd210..dfc605aec92b43c1b75919490b8551495519f8ed 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.description.focus();
+ focus_field('cn','description');
-->
</script>
index dcd448596db472dcfc968a0a596256854d729bd9..79f47c6c4a115a844aebd3163ac85dadc07dae0b 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.filter.focus();
+ focus_field('filter');
-->
</script>
index a62397906728ba7304354965c2f764842e0f999f..4fe989bd6845467734991e5a880828af1ab22b5f 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.description.focus();
+ focus_field('cn','description');
-->
</script>
diff --git a/plugins/admin/fai/faiPartitionTableEntry.tpl b/plugins/admin/fai/faiPartitionTableEntry.tpl
index 9ceab9439d3dcbcabd3826fe226f68c2eedd3838..e7f1b9ec4d65d820d1773e63bf53bd08c0cf127e 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.DISK_cn.focus();
+ focus_field('DISK_cn');
-->
</script>
index 5020bc74557770a214669c7679e830ecc14fd53b..7c3e3f5c591320c554010772918c2ebe2a264997 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.description.focus();
+ focus_field('cn','description');
-->
</script>
index 420b6afd0309b0054c5f5fa0cd666a26f3c76c37..e1641c72ec9e0d242cd5c190fc2244a2b7d9b590 100644 (file)
<input type="hidden" value="1" name="FAIscript_posted" >
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
- <!-- // First input field on page
- document.mainform.description.focus();
- -->
+<!--
+ focus_field("cn","description");
+-->
</script>
index ab9c5c15227e746bc6d27decb919533e9354f36a..145fc8bc8e70dd2f99c84b4b93df71ca43736cce 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn','description');
-->
</script>
index 11111ea035b0b377b421c94fdf8424a9c1ad6974..f67bf2307ba0963e084aa6a379f03a65f09bd6a3 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.description.focus();
+ focus_field('cn','description');
-->
</script>
index 4656e4964c7e5568497c4d0ad62d37571b1fa2a0..d42c331b646c10f38bdb65974ce67ae5df3a9da9 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn','description');
-->
</script>
index 3eff2719e672d8d2b1e98c0f0bd750b9daf37876..360eb83ef30bea301af276873c2c105b648245b4 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.description.focus();
+ focus_field('cn','description');
-->
</script>
index c4d6fc63817fba1265e509bdeffba744b8c76895..3d5beaed99ba0e58a45d3262f59bb8d7d090b59a 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn','description');
-->
</script>
index 1b94e5374c422ca0bad6630185237068b88671be..99add768a140e4c18cc0f9b5257a5a599cfff91b 100644 (file)
{t}Name{/t} : <input type='text' name='cn' value='{$cn}' id='cn' title='{t}Enter FAI object name{/t}'>
<script language="JavaScript" type="text/javascript">
- document.mainform.cn.focus();
+ focus_field('cn');
</script>
index 01d5d87a8e9e2e62362703731fa2e38145bf9a89..1fd62e6c6ff7c3683aed66f0b16cf67408e0f097 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn');
-->
</script>
index f7347f5ec8c6d5452b8ef584f0cf67ebfbc58020..bf239f9b9115e27afb0ffe7ebd36a9bb178c9198 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.mail.focus();
+ focus_field('mail');
-->
</script>
index 5ce50f6e93a4bddece4803290a4486bed38af98a..1353ed0e3e882917f1b4e4a478ab3fcdc13d9399 100644 (file)
</table>
<script language="JavaScript" type="text/javascript">
- document.mainform.cn.focus();
+ focus_field('cn');
</script>
index 9784fa92e8aaa6f739ad62f18d2583bb50c05b1a..e30ba9af0d29b951836c9c0021bdd81faab4cc54 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.mail.focus();
+ focus_field('mail');
-->
</script>
index edd7047ef4f2c7ed69a429cef0f5387b49040075..02e83628c9ed26c73db4413cdbdf291d1df22ece 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn');
-->
</script>
index 182f28ec3d11abea5daf912bbf95b45454a6149b..63e46382e581ce58a61d5464e7a14f8e82e26dae 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn');
-->
</script>
index 8039ab9920d26422f80a8d2a179dfdfc770f6dd1..c1376d85d166712f56da665f7cfbecb38f09b0a1 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.mail.focus();
+ focus_field('mail');
-->
</script>
index 637b759eabbf70119ad1302110abf2ac117fb6d9..91f84d8aef85d336c214157cda000b343b2b40fc 100644 (file)
</table>
<script language="JavaScript" type="text/javascript">
- document.mainform.cn.focus();
+ focus_field('cn');
</script>
index d9d569b7f0d1d27b26a58aa163d569b281a29906..737d707ef4b3d88916a83b48345a8b5f2a02b3fd 100644 (file)
</table>
<script language="JavaScript" type="text/javascript">
- document.mainform.mail.focus();
+ focus_field('mail');
</script>
index 271d247907e1d52c1180ac8a11e1d310e1ec2503..7f25ca9211d7ebc3796577b82f562eaa6d1f84bb 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn');
-->
</script>
index b2b9d04a1ded424909e468ba9018feb305d93931..f0c4496774b489944bf6b65449737dea6931aea8 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- nextfield= 'new_password';
- document.mainform.new_password.focus();
+ nextfield= 'new_password';
+ focus_field('new_password');
-->
</script>
index b71261a25e446622a7ffd3285fa5d7d8c7f87971..3224eccaceabff360a082c74acfd1a15e8bead41 100644 (file)
<input type="hidden" name="glpi_tpl_posted" value="1">
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.type.focus();
+ focus_field('type');
-->
</script></td></tr></table><p style="text-align:right">
diff --git a/plugins/admin/systems/glpiAttachmentEdit.tpl b/plugins/admin/systems/glpiAttachmentEdit.tpl
index f9867ddbd92f2a8a649c582f7327f6f90036c6d6..7d91e50afd1519c76a61a83d4956652b6ad277c0 100644 (file)
</div>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.name.focus();
+ focus_field('name');
-->
</script>
diff --git a/plugins/admin/systems/glpiManufacturerAdd.tpl b/plugins/admin/systems/glpiManufacturerAdd.tpl
index 980138a48f478866c763e1c497bec3096eb42d1b..c5b060d29781e3b52cca8308c11d7fcc375d49de 100644 (file)
</div>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.name.focus();
+ focus_field('name');
-->
</script>
diff --git a/plugins/admin/systems/glpiPrinterCartridgesEdit.tpl b/plugins/admin/systems/glpiPrinterCartridgesEdit.tpl
index 894af570d1e853857160b6c52fc1c569570d653c..ad7106361e3d2d17d73d4045d7b0348c0950520e 100644 (file)
</div>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.name.focus();
+ focus_field('name');
-->
</script>
diff --git a/plugins/admin/systems/glpi_edit_cartridge_type.tpl b/plugins/admin/systems/glpi_edit_cartridge_type.tpl
index 0d640bbb5d076583f08f0444b50fa979aa31c67c..cbc91d95f4d119abebbfe3eb9f055dbf84c0d669 100644 (file)
</div>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cartridge_type_string.focus();
+ focus_field('cartridge_type_string');
-->
</script>
index 892490acc88c9e503c3bbff6c5b3bd9a686dbdfd..8e3726451084657e3f38e4e01c9fc16a84435f37 100644 (file)
</div>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.is_string.focus();
+ focus_field('is_string');
-->
</script>
{else}
</p>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.string.focus();
+ focus_field('string');
-->
</script>
{/if}
diff --git a/plugins/admin/systems/glpi_edit_printer_type.tpl b/plugins/admin/systems/glpi_edit_printer_type.tpl
index 90dd9c054f72e158526276bc1acfe87e7b16ce75..a63e9235e47911a2d19a1475e6b56af1319f71bd 100644 (file)
</div>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.type_string.focus();
+ focus_field('type_string');
-->
</script>
</p>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.string.focus();
+ focus_field('string');
-->
</script>
index bc24ce30555d11bc91d951a2858ad815d69228bf..14a4f54311cf98d2b0e7edfdcb659fab72087f6f 100644 (file)
</div>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.type_string.focus();
+ focus_field('type_string');
-->
</script>
{else}
</p>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.string.focus();
+ focus_field('string');
-->
</script>
{/if}
index 6fb9cdb057ccb2cad5cea97fb233467d0d8ddb40..734a4ae0c443f629c34b36070c0acd7664167377 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- nextfield= 'new_password';
- document.mainform.new_password.focus();
+ nextfield= 'new_password';
+ focus_field('new_password');
-->
</script>
index d8172cf63b1e2a56f0c792ee5f6aacd1905d19f7..98188e5fee32f51bc10e08e96c17869003e861e6 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn');
-->
</script>
index 0578027d156b9a9bd536ff45a059d58667103325..8be336208b71438f5f14b37e447af57a8b96719e 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn');
-->
</script>
diff --git a/plugins/admin/systems/servDNSeditZoneEntries.tpl b/plugins/admin/systems/servDNSeditZoneEntries.tpl
index 0efdd7bd40651301af12b89444790a26f83da5b3..0396575621171ae6869ac771ab7587e0e822e92c 100644 (file)
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.zoneName.focus();
+ focus_field('zoneName');
-->
</script>
index 1a0eaf280724243d1a3ef8104c1f18b594b72548..88a6f582c369ba7f2c7b7f01150d79e5fb2831c2 100644 (file)
</table>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.AddZone.focus();
+ focus_field('AddZone');
-->
</script>
index 702e7717b81c7d4cc03c6a489c31a6dea93ecfdc..2e7c969be9d9c276ad97d0dbc365c66ed9e4d919 100644 (file)
</div>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.zoneName.focus();
+ focus_field('zoneName');
-->
</script>
index f4998552d3ea1742754ff425248cb381793c334a..b427fdd06178467bdf674ce31a81d6b50d0a9de7 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn');
-->
</script>
index e8444efa8cb3d35874ad4ed6a77b03c774a99666..677297a6337b93e2e2a950dcb924443cd188a1bc 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn');
-->
</script>
index 55f7de1555b4acff78af0b6cba2e784243c7b169..98d5805946be1a19ed32b6815632071f28f952ec 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.gotoLdapServer.focus();
+ focus_field('gotoLdapServer');
-->
</script>
index 2840270c02baf9b3462b9f986ec3c362cf680a3f..fb58a6d66c4b01da700349a1303d461ad4e63ba4 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn');
-->
</script>
index 7811521d7b8ef6bef67a829cb0a8830a7a33f2ec..9d6b9f85d0d3078e06be2f20dfd9e779e0a260fa 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.l.focus();
+ focus_field('l');
-->
</script>
{else}
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn');
-->
</script>
{/if}
diff --git a/plugins/admin/systems/workstationService.tpl b/plugins/admin/systems/workstationService.tpl
index b91d824fa6ac43bac6b1bc7f38f4981e5b159489..3cc0357c35fcdbc221d1a772b5a583c9a5939694 100644 (file)
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.gotoXKbModel.focus();
+ focus_field('gotoXKbModel');
-->
</script>
diff --git a/plugins/admin/systems/workstationStartup.tpl b/plugins/admin/systems/workstationStartup.tpl
index e68ed7577154cdfe1cff13ffa27a2ae1f5554e34..23878411926656b40f3a40f0cf43921637f92d59 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.gotoLdapServer.focus();
+ focus_field('gotoLdapServer');
-->
</script>
index 8ce6f731796e40946a22e45397a800737efcb556..83dfc24948a1236c1b73973ac64cd32b1746b092 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- nextfield= "new_password";
- document.mainform.new_password.focus();
+ nextfield= "new_password";
+ focus_field('new_password');
-->
</script>
index 64cbe547594fbdc3ab1f05bb45ee1f55119e15da..37237f9fc0bc0e8a07068723fd5874f887536e85 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.sn.focus();
+ focus_field('sn');
-->
</script>
index 00e945a5302c52f47f4f473a54e92cbe7b0eac75..629cf3852cae149add5b886b6577ff100062c2da 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('n');
-->
</script>
index b29402516d99c33d00ce444b5751a4116a76f2a7..87a5b0acbf110b28e888f0db82a963f7fa2194fa 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.facsimileTelephoneNumber.focus();
+ focus_field('facsimileTelephoneNumber');
-->
</script>
diff --git a/plugins/gofax/faxaccount/paste_generic.tpl b/plugins/gofax/faxaccount/paste_generic.tpl
index 769d9075348d90893a783dc64b0ab37f6685a6c3..0d154186153f976d52e7a8bba0de008dcbd27369 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.facsimileTelephoneNumber.focus();
+ focus_field('facsimileTelephoneNumber');
-->
</script>
index a0eb831a30f13dd23f2845dc282e85059d3f113f..197c5b8c8a5bf6937bb1e073dbfb5071913379dd 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.search_for.focus();
+ focus_field('search_for');
-->
</script>
index 2d5cf5de07cce2c5b865b6a68d5a674324ed0536..3163499f3fc6ec1a3d253c29a6191d2f14b5f054 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn');
-->
</script>
index a128dcc358333bd9b211e8572c03cbc808a7db02..bd8f503fdd74b5f94d73cf121e43eabc1309c2db 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.search_for.focus();
+ focus_field('search_for');
-->
</script>
index 07ab79fe0d2083560a90d27d680fa6485b5793d8..19b76e5ceaf22b78a25c8ea69e1f025328e73400 100755 (executable)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn');
-->
</script>
index 79c50c642d7facd7e0688dc6ac8d831e339a5ded..0ee37b5542bc60c9cc47f5c90acf3e1cf787f3ce 100755 (executable)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.cn.focus();
+ focus_field('cn');
-->
</script>
index 7e0df543c7773e3ddf0e648e65cd9701c2158ef2..b83e571ef91f9b6847928387fedae72669b6d98e 100644 (file)
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.phonenumber.focus();
+ focus_field('phonenumber');
-->
</script>
diff --git a/plugins/personal/connectivity/pureftpd.tpl b/plugins/personal/connectivity/pureftpd.tpl
index 2dc1ca313cfa8170b5ff50125498f2e5867b61c6..d0167e4ae7e10bca135e54909f8501bd6d0a0531 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.FTPUploadBandwidth.focus();
+ focus_field('FTPUploadBandwidth');
-->
</script>
diff --git a/plugins/personal/environment/environment.tpl b/plugins/personal/environment/environment.tpl
index 4f63c1a8641957dddf16388905a5cd77eb9992a9..fc1169931473656dadde568d9f58ef02a3c13597 100644 (file)
</table>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.useProfile.focus();
+ focus_field('useProfile');
-->
</script>
{/if}
diff --git a/plugins/personal/environment/hotplugDialog.tpl b/plugins/personal/environment/hotplugDialog.tpl
index ddc810599953a6f929492efe39cba8a2e0ebc778..868e72b00209950367b6decae10ff5a8be56640b 100644 (file)
</p>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.hotplugName.focus();
+ focus_field('hotplugName');
-->
</script>
diff --git a/plugins/personal/environment/hotplugDialogNew.tpl b/plugins/personal/environment/hotplugDialogNew.tpl
index 312067824293f32575bf183c74614d1a81951500..b88bccf649995d43600e70e6707b53a673c5efd4 100644 (file)
</p>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.HOT_name.focus();
+ focus_field('HOT_name');
-->
</script>
diff --git a/plugins/personal/environment/kioskManagement.tpl b/plugins/personal/environment/kioskManagement.tpl
index 117cf354ee57fc3901f8704187de09e9fcdd462c..88391b8a2931ebf658c9f5cc80a3b49016d6ae6f 100644 (file)
</p>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.gotoKioskProfile.focus();
+ focus_field('gotoKioskProfile');
-->
</script>
diff --git a/plugins/personal/environment/logonManagement.tpl b/plugins/personal/environment/logonManagement.tpl
index 7aa46ab967c5304d54a46205f0a28e42db1271d2..24634e01a45dd8ca95817360c1ce4447ef924a8f 100644 (file)
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.LogonName.focus();
+ focus_field('LogonName');
-->
</script>
diff --git a/plugins/personal/environment/selectPrinterDialog.tpl b/plugins/personal/environment/selectPrinterDialog.tpl
index 95af082eceee7bb60b8cd643e8c6e5f815e2e300..f07674d39baf1fce20ca0f7367bca2e40300a2b7 100644 (file)
</p>
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.gotoPrinter.focus();
+ focus_field('gotoPrinter');
-->
</script>
index 0f02daef40dd1d361fc74989531e759c2db5d911..f14794f167d220035c8c9b4504f846f5d09f9112 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.sn.focus();
+ focus_field('sn');
if (document.mainform.yearSel != "")
populate(document.mainform,document.mainform.dateOfBirth);
-->
index 3d532f58155a1e27cca04dd3ddc1443c40e02505..3d26511fc927afd2e302e263209bc91c57f88a33 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- nextfield= "new_password";
- document.mainform.new_password.focus();
+ nextfield= "new_password";
+ focus_field('new_password');
-->
</script>
index d99123e2ee1df743a9b0bf7c02d7b6526870b98d..419055f92f9d2dae920f0a1796116f3e9b87ae7a 100644 (file)
<!-- // First input field on page
- document.mainform.mail.focus();
+ focus_field('mail');
-->
</script>
index cb6262148d5a87000c1785aba33b6e5ff262d07d..00949b0a266dc083173d7ee6cd387635e36f25e2 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.NagiosAlias.focus();
+ focus_field('NagiosAlias');
-->
</script>
index 8d34ac4b2b1290cef966085851dc1256395d42ae..4e121ceb0f6029336e99d3e66b5b8d4b0810fee7 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.apple_user_homeurl_raw.focus();
+ focus_field('apple_user_homeurl_raw');
-->
</script>
index a62a01352ff1adde217c72a780767929a413daf0..0787b70566491cc53cf958f85ade4faecbc66c3b 100644 (file)
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
nextfield= 'current_password';
- document.mainform.current_password.focus();
+ focus_field('current_password');
-->
</script>
index 62ce5a7ac0f11cf8ce8fd3a283cde6549d7a4780..9ffed418806a33280c06b1bcd333c9b83f55250e 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.homeDirectory.focus();
+ focus_field('homeDirectory');
-->
</script>
index 506818dbc36cbb2b1dba425ab0d9f31ce41c9510..337cac75cf93e2b85117e2121685d01f9e6c4a69 100644 (file)
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.scalixMailnode.focus();
+ focus_field('scalixMailnode');
-->
</script>
diff --git a/setup/setup_ldap.tpl b/setup/setup_ldap.tpl
index 1def567cb2d7ba6f19e2777b411eb653a3595674..b54c7a6747361d21a2ca2c99ad48ba798b33807e 100644 (file)
--- a/setup/setup_ldap.tpl
+++ b/setup/setup_ldap.tpl
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.location.focus();
+ focus_field('location');
-->
</script>
index 5f94ddcbcb4a93dd73f6b970b4e385099df9a74c..d353256a52b5a6fa420a9914c311d45c3f9cef25 100644 (file)
--- a/setup/setup_migrate.tpl
+++ b/setup/setup_migrate.tpl
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.new_user_password.focus();
+ focus_field('new_user_password');
-->
</script>
<p class='seperator'> </p>