[%- USE T8 %]
[% USE HTML %]
[% USE LxERP%]
-<body class="admin" onload="document.getElementById('rpw').focus()">
+<body class="admin">
+
+ <script type='text/javascript'>
+ $(function(){ document.getElementsById('rpw').focus();});
+ </script>
<div align="center">
<a href="http://www.kivitendo.org"><img src="image/kivitendo.png" border="0"></a>
[%- USE T8 %]
[%- USE HTML %]
-<body class="admin" onload="set_subject(); document.getElementsByName('to')[0].focus(); ">
+<body class="admin">
<script type="text/javascript">
<!--
- function set_subject() {
+ $(function(){
+ document.getElementsByName('to')[0].focus();
+ set_subject();
+ });
+
+ function set_subject () {
var subject_template = "[% 'Backup of dataset' | $T8 %]";
var subject = document.Form.subject.value;
[%- USE T8 %]
[%- USE HTML %]
-<body class="admin" onload="document.getElementsByName('dbname')[0].focus(); ">
+<body class="admin">
+
+ <script type='text/javascript'>
+ $(function(){ document.getElementsByName('dbname')[0].focus();});
+ </script>
<h2>[% title %]</h2>
[%- USE T8 %]
[%- USE HTML %]
-<body onload="document.Form.name.focus();">
+ <script type='text/javascript'>
+ $(function(){document.Form.name.focus();});
+ </script>
<style type="text/css">
.small {
[% USE HTML %]
[% USE L %]
-<body onload="copy_values_and_close()">
-
<script type="text/javascript">
<!--
- function copy_values_and_close() {
+ $(function() {
window.opener.document.getElementsByName("periodic_invoices_config")[0].value = $("#periodic_invoices_config").attr('value');
window.close();
- }
+ })
-->
</script>