@@ -, +, @@ - Changing library select form so that chosen library is preselected - Changing pager
so that nested form tags don't conflict. It was the addition of the javascript table pager which broke the functionality on this page. --- admin/branch_transfer_limits.pl | 1 + .../en/modules/admin/branch_transfer_limits.tt | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) --- a/admin/branch_transfer_limits.pl +++ a/admin/branch_transfer_limits.pl @@ -58,6 +58,7 @@ my @branch_loop; for my $thisbranch (sort { $branches->{$a}->{branchname} cmp $branches->{$b}->{branchname} } keys %$branches) { my %row =(value => $thisbranch, branchname => $branches->{$thisbranch}->{'branchname'}, + selected => $thisbranch eq $branchcode ? 1 : 0, ); push @branch_loop, \%row; } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt @@ -71,7 +71,11 @@ Select a library : [% FOREACH branch_loo IN branch_loop %] + [% IF ( branch_loo.selected ) %] + [% branch_loo.branchname %] + [% ELSE %] [% branch_loo.branchname %] + [% END %] [% END %] @@ -99,8 +103,8 @@ }).tablesorterPager({container: $("#pager[% codes_loo.code %]table"),positionFixed: false,size: 10}); }); - - page(s) : + + page(s) : @@ -115,8 +119,8 @@ 50 100 - - + + --
page(s) : @@ -115,8 +119,8 @@ 50 100 - - +