[%- USE T8 %]
[%- USE L %]
[%- USE HTML %][%- USE LxERP %]
-<body onload="on_load();">
-
[%- IF vc == 'customer' %]
[%- SET is_customer = '1' %]
[%- ELSE %]
[%- END %]
<script type="text/javascript">
- <!--
- function on_load() {
- document.Form.donumber.focus();
- }
- -->
+ $(function(){ document.Form.donumber.focus(); });
</script>
<style type="text/css">
[% USE HTML %]
[% USE L %]
[% L.javascript_tag('jquery') %]
-<body onload="on_load();">
-
<script type="text/javascript">
<!--
- function on_load() {
+ $(function(){
var row = $('#row').attr('value');
window.opener.document.getElementsByName("stock_" + $('#in_out').attr('value') + "_" + row)[0].value = $('#stock').attr('value');
$(window.opener.document.getElementById("stock_in_out_qty_display_" + row)).html($('#qty_display').attr('value'));
$(window.opener.document.getElementById("stock_in_out_qty_matches_" + row)).val([% qty_matches %]);
window.close();
- }
+ });
-->
</script>
[%- USE T8 %]
[%- USE L %]
[%- USE HTML %][%- USE LxERP %][%- USE JavaScript %]
-<body[%- UNLESS delivered %] onload="on_load();"[%- END %]>
-
[%- UNLESS delivered %]
<script type="text/javascript">
<!--
control.options[initial_bin_index].selected = true;
}
- function on_load() {
+ $(function(){
[%- USE STOCK_INFO_it = Iterator(STOCK_INFO) %][%- FOREACH si = STOCK_INFO_it %]
// new si for wh [% si.warehouse_id %] bin [% si.bin_id %]
[%- SET warehouse_selected = '0' %]
warehouse_selected([% STOCK_INFO_it.count %], 0);
[%- END %]
[%- END %]
- }
+ });
-->
</script>
[%- END %]
[%- USE T8 %]
[%- USE L %]
[%- USE HTML %]
-<body onload="on_load();">
-
<script type="text/javascript">
- <!--
- function on_load() {
- document.Form.subject.focus();
- }
- -->
+ $(function(){ document.Form.subject.focus(); });
</script>
<form action="fu.pl" method="post" name="Form">
[%- USE T8 %]
[%- USE L %]
[% USE HTML %]
-<body onload="on_load()">
-
<script type="text/javascript">
- <!--
- function on_load() {
- document.Form.subject.focus();
- }
- -->
+ $(function(){ document.Form.subject.focus(); });
</script>
<div class="listtop">[% title %]</div>
[%- USE T8 %]
[%- USE L %]
[%- USE HTML %][%- USE JavaScript %]
-<body onload="on_load();">
-
<script type="text/javascript">
<!--
warehouses = new Array();
control.options[bin_index].selected = true;
}
- function on_load() {
+ $(function() {
warehouse_selected(0, 0);
document.Form.partnumber.focus();
- }
+ })
-->
</script>
[%- USE T8 %]
[%- USE L %]
[%- USE HTML %][%- USE JavaScript %]
-<body onload="on_load();">
-
<script type="text/javascript">
<!--
warehouses = new Array();
control.options[bin_index].selected = true;
}
- function on_load() {
+ $(function () {
warehouse_selected(0, 0);
document.Form.partnumber.focus();
- }
+ });
-->
</script>
[%- USE T8 %]
[%- USE HTML %][%- USE JavaScript %]
-<body onload="on_load();">
-
<script type="text/javascript">
<!--
warehouses = new Array();
control.options[0].selected = true;
}
- function on_load() {
+ $(function() {
[% FOREACH row = CONTENTS %]
warehouse_selected([% loop.count %], [% initial_warehouse_idx %]);
[% END %]
- }
+ });
-->
</script>
[%- USE HTML %]
[%- USE L %]
[%- USE JavaScript %]
-<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">
control.options[bin_index].selected = true;
}
- function on_load() {
+ $(function() {
warehouse_selected(0, 0);
document.Form.partnumber.focus();
- }
+ });
-->
</script>
[%- 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">
control.options[bin_index].selected = true;
}
- function on_load() {
+ $(function() {
warehouse_selected([% warehouse_id %], [% bin_id %]);
- }
+ })
-->
</script>
[%- 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">
control.options[bin_index].selected = true;
}
- function on_load() {
+ $(function() {
warehouse_selected([% warehouse_id %], [% bin_id %]);
- }
+ })
-->
</script>