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:
parent
74bef99916
commit
e4079d17f3
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue