Bug 33568: Fix columns shift when pref are off
From comment 66: If StaffDetailItemSelection and/or LocalCoverImages is turned off, the alignment of the drop-down filters for the other columns is offset by 1 for each of the two sysprefs that is disabled Signed-off-by: Laurence Rault <laurence.rault@biblibre.com> Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
13947b9554
commit
a767e15c74
1 changed files with 7 additions and 3 deletions
|
@ -277,11 +277,15 @@
|
|||
}
|
||||
[% END %]
|
||||
|
||||
let offset = 2;
|
||||
[% UNLESS Koha.Preference('LocalCoverImages') %]offset--;[% END %]
|
||||
[% UNLESS Koha.Preference('StaffDetailItemSelection') %]offset--;[% END %]
|
||||
let filters_options = {
|
||||
2: () => all_item_types,
|
||||
3: () => all_libraries,
|
||||
4: () => all_libraries,
|
||||
[offset] : () => all_item_types,
|
||||
[offset+1] : () => all_libraries,
|
||||
[offset+2] : () => all_libraries,
|
||||
};
|
||||
|
||||
var items_table = $("#" + tab_id + '_table').kohaTable({
|
||||
ajax: { url: item_table_url },
|
||||
order: [],
|
||||
|
|
Loading…
Reference in a new issue