$main::lxdebug->leave_sub();
}
+sub setup_io_select_item_action_bar {
+ my %params = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Continue'),
+ submit => [ '#form' ],
+ accesskey => 'enter',
+ ],
+ );
+ }
+}
+
sub select_item {
$main::lxdebug->enter_sub();
my $pre_entered_qty = $params{pre_entered_qty} || 1;
_check_io_auth();
+ setup_io_select_item_action_bar();
+
my $previous_form = $::auth->save_form_in_session(form => $::form);
$::form->{title} = $::myconfig{item_multiselect} ?
$::locale->text('Set count for one or more of the items to select them'):
[% SET COLS = 8 %]
<h1>[% title %]</h1>
- <form method="post" action="[% HTML.escape(script) %]">
+ <form method="post" action="[% HTML.escape(script) %]" id="form">
<table width="100%">
<tr class="listheading">
[% L.hidden_tag('select_item_mode', MODE) %]
[% L.hidden_tag('select_item_previous_form', PREVIOUS_FORM) %]
- [% L.hidden_tag('nextsub', 'item_selected') %]
-
- [% L.submit_tag('action', LxERP.t8('Continue')) %]
+ [% L.hidden_tag('action', 'item_selected') %]
</form>
[%- IF MYCONFIG.item_multiselect %]