Merge branch 'b-3.6.1' into mebil
[kivitendo-erp.git] / templates / webpages / oe / save_periodic_invoices_config.html
index 81818fe..222a490 100644 (file)
@@ -1,19 +1,14 @@
 [% USE HTML %]
 [% USE L %]
-<body onload="copy_values_and_close()">
-
  <script type="text/javascript">
   <!--
-      function copy_values_and_close() {
-        window.opener.document.getElementsByName("periodic_invoices_config")[0].value = $("#periodic_invoices_config").attr('value');
+      $(function() {
+        window.opener.document.getElementsByName("periodic_invoices_config")[0].value = $("#periodic_invoices_config").prop('value');
         window.close();
-      }
+      })
     -->
  </script>
 
  <form name="Form">
   [% L.hidden_tag("periodic_invoices_config", periodic_invoices_config) %]
  </form>
-
-</body>
-</html>