on_load entfernt und in jquery.ready verwandelt
[kivitendo-erp.git] / templates / webpages / wh / warehouse_selection_stock.html
index 1a50d55..bdff796 100644 (file)
@@ -1,8 +1,6 @@
 [%- USE T8 %]
 [%- USE L %]
 [%- USE HTML %][%- USE JavaScript %][%- USE LxERP %]
-<body onload="on_load();">
-
  <script type="text/javascript" src="js/common.js"></script>
  <script type="text/javascript" src="js/part_selection.js"></script>
  <script type="text/javascript">
@@ -51,9 +49,9 @@
         control.options[bin_index].selected = true;
       }
 
-      function on_load() {
+      $(function() {
         warehouse_selected([% warehouse_id %], [% bin_id %]);
-      }
+      })
     -->
  </script>