-<script type='text/javascript'>
-function update_result() {
- var data = $('#multi_items_form').serializeArray();
- data.push({ name: 'type', value: '[%- FORM.type %]' });
- $.ajax({
- url: 'controller.pl?action=Order/multi_items_update_result',
- data: data,
- method: 'post',
- success: function(data){
- $('#multi_items_result').html(data);
- $('#multi_items_result input').keydown(function(event) {
- if(event.keyCode == 13) {
- event.preventDefault();
- add_multi_items();
- return false;
- }
- });
- }
- });
-}
-
-function add_multi_items() {
- var data = $('#[%- FORM.callback_data_id %]').serializeArray();
- data = data.concat($('#multi_items_form').serializeArray());
- data.push({ name: 'action', value: '[%- FORM.callback %]' });
- $.post("controller.pl", data, kivi.eval_json_result);
-}
-
-$('#multi_items_filter_table input, #multi_items_filter_table select').keydown(function(event) {
- if(event.keyCode == 13) {
- event.preventDefault();
- update_result();
- return false;
- }
-});
-
-$('#multi_items_filter_all_substr_multi_ilike').focus();
-</script>