Bug 31818: Enable table elements in keyboard shortcuts popover

This patch updates the whitelist for the popover to ensrue our shortcuts table displays

To test:
1 - Open the advanced cataloging editor
2 - Click 'Keyboard shortcuts'
3 - Is empty, be sad
4 - Apply patch
5 - Reload
6 - Click it again
7 - Shortcuts!

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2022-11-03 15:20:34 +00:00 committed by Tomas Cohen Arazi
parent 74bef99916
commit e4079d17f3
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 9 additions and 0 deletions

View File

@ -1306,6 +1306,15 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
},
});
// Whitelist table elements to ensure popover displays all the info
$.fn.popover.Constructor.DEFAULTS.whiteList.table = [];
$.fn.popover.Constructor.DEFAULTS.whiteList.tr = [];
$.fn.popover.Constructor.DEFAULTS.whiteList.td = [];
$.fn.popover.Constructor.DEFAULTS.whiteList.div = [];
$.fn.popover.Constructor.DEFAULTS.whiteList.tbody = [];
$.fn.popover.Constructor.DEFAULTS.whiteList.thead = [];
// https://getbootstrap.com/docs/3.4/javascript/#popovers
$('#show-shortcuts').popover({
html: true,
placement: 'bottom',