mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
Merge branch 'support/3.0' into develop
This commit is contained in:
@@ -807,8 +807,10 @@ const CombodoTooltip = {
|
||||
oOptions['content'] = sContent;
|
||||
|
||||
// Interaction (selection, click, ...) have to be enabled manually
|
||||
// Important: When set to true, if "data-tooltip-append-to" is not specified, tooltip will be append to the parent element instead of the body
|
||||
const bInteractive = oElem.attr('data-tooltip-interaction-enabled') === 'true';
|
||||
// Important: When set to true, if "data-tooltip-append-to" is not specified, tooltip will be appended to the parent element instead of the body
|
||||
// Note: Defaults to true if it contains hyperlink
|
||||
let bDefaultInteractive = (bEnableHTML && sContent.indexOf("<a ") > -1)
|
||||
const bInteractive = oElem.attr('data-tooltip-interaction-enabled') !== undefined ? oElem.attr('data-tooltip-interaction-enabled') === 'true' : bDefaultInteractive;
|
||||
oOptions['interactive'] = bInteractive;
|
||||
|
||||
// Element to append the tooltip to
|
||||
|
||||
Reference in New Issue
Block a user