Skip to content

Commit

Permalink
Merge pull request #500 from tekezo/fix/offline-search-style
Browse files Browse the repository at this point in the history
Fix an issue that inline styles in the offline search result is ignored.
  • Loading branch information
LisaFC committed Apr 6, 2021
2 parents 69a4d17 + a27b0e0 commit be0a080
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/js/offline-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,13 @@
});
});

// Enable inline styles in popover.
const whiteList = $.fn.tooltip.Constructor.Default.whiteList;
whiteList['*'].push('style');

$targetSearchInput
.data('content', $html[0].outerHTML)
.popover({ whiteList: whiteList })
.popover('show');
};
});
Expand Down

0 comments on commit be0a080

Please sign in to comment.