From c729b698dd35d0e6a97277724d6982eb0235255d Mon Sep 17 00:00:00 2001 From: mabashian Date: Mon, 10 Jun 2019 16:11:02 -0400 Subject: [PATCH] Whitelist table elements for use in bootstrap popovers --- awx/ui/client/legacy/styles/ansible-ui.less | 4 ++++ awx/ui/client/src/vendor.js | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/awx/ui/client/legacy/styles/ansible-ui.less b/awx/ui/client/legacy/styles/ansible-ui.less index 06f9f6721a..90824e43f5 100644 --- a/awx/ui/client/legacy/styles/ansible-ui.less +++ b/awx/ui/client/legacy/styles/ansible-ui.less @@ -430,6 +430,10 @@ textarea.allowresize { p:last-child { margin-bottom: 0; } + + table { + color: @default-bg; //white + } } .popover.right>.arrow:after { border-right-color: @default-interface-txt; diff --git a/awx/ui/client/src/vendor.js b/awx/ui/client/src/vendor.js index 7dbdbba6cc..febd93d6e7 100644 --- a/awx/ui/client/src/vendor.js +++ b/awx/ui/client/src/vendor.js @@ -31,6 +31,13 @@ require('bootstrap-datepicker'); const btn = $.fn.button.noConflict(); $.fn.btn = btn; +// Whitelist table elements so they can be used in popovers +$.fn.popover.Constructor.Default.whiteList.table = []; +$.fn.popover.Constructor.Default.whiteList.tr = []; +$.fn.popover.Constructor.Default.whiteList.td = []; +$.fn.popover.Constructor.Default.whiteList.tbody = []; +$.fn.popover.Constructor.Default.whiteList.thead = []; + require('select2'); // Standalone libs