]> wagnertech.de Git - kivitendo-erp.git/commitdiff
restliche onloads im body entfernt
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 20 Sep 2012 17:28:45 +0000 (19:28 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Wed, 17 Oct 2012 14:01:57 +0000 (16:01 +0200)
templates/webpages/admin/adminlogin.html
templates/webpages/admin/backup_dataset.html
templates/webpages/admin/restore_dataset.html
templates/webpages/amcvar/display_cvar_config_form.html
templates/webpages/oe/save_periodic_invoices_config.html

index b36c7353e110cb37bed351deb5b647c7ae9b93d1..652dff68b1b5df82d500ff53890ff8ce32304b16 100644 (file)
@@ -1,7 +1,11 @@
 [%- 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>
index 85739b4bfbe9ceab04607a25529732664650f67c..fbe5fd3fa8f2da375498710d91e97e7b5af630b5 100644 (file)
@@ -1,10 +1,15 @@
 [%- 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;
 
index 0ca7c3de27e9701066dfae784dbc48153a7adf3c..f110c70946119ef05e411c227b3428c6e9398fe7 100644 (file)
@@ -1,6 +1,10 @@
 [%- 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>
 
index dbd9181deea4135a64d558ec4e133633ba933986..6c2ebe1a37940ee28c168edbf3d60dfd5373b4aa 100644 (file)
@@ -1,6 +1,8 @@
 [%- 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 {
index 96f8f946f0559e8fa4a000aac3925d86a64bee7b..8d1b33e19ebf497ca4f930c5ad654ef46c8b022f 100644 (file)
@@ -1,13 +1,11 @@
 [% 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>