Merge pull request #13424 from snipe/bug/sc-23552

Fixed tooltip not loading on encrypted field lock icon on asset detail view
This commit is contained in:
snipe 2023-08-08 19:00:56 +01:00 committed by GitHub
commit 521961457d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View file

@ -973,7 +973,12 @@
$(function () {
$('[data-tooltip="true"]').tooltip();
// Invoke Bootstrap 3's tooltip
$('[data-tooltip="true"]').tooltip({
container: 'body',
animation: true,
});
$('[data-toggle="popover"]').popover();
$('.select2 span').addClass('needsclick');
$('.select2 span').removeAttr('title');

View file

@ -85,3 +85,12 @@
</div>
@endforeach
@endif
<script nonce="{{ csrf_token() }}">
// We have to re-call the tooltip since this is pulled in after the DOM has loaded
$('[data-tooltip="true"]').tooltip({
container: 'body',
animation: true,
});
</script>