mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°3749 - Remove old JS tooltip libs (qTip, jQuery tooltip, Bootstrap tooltip) calls
This commit is contained in:
@@ -55,6 +55,7 @@ $(document).ready(function()
|
||||
// Hide tooltips when a modal is opening, otherwise it might be overlapping it
|
||||
oBodyElem.on('show.bs.modal', '.modal', function ()
|
||||
{
|
||||
// We'll probably never have this kind of tooltip anymore, but just in case
|
||||
$(this).find('.tooltip.in').tooltip('hide');
|
||||
|
||||
// Set the z-index of the modal and its backdrop in case we have several modals opened
|
||||
|
||||
@@ -617,21 +617,14 @@ function ValidateInteger(sFieldId, bMandatory, sFormId, iMin, iMax, sExplainForm
|
||||
}
|
||||
if (sMessage)
|
||||
{
|
||||
$('#'+sFieldId).attr('title', sMessage).tooltip();
|
||||
if ($('#'+sFieldId).is(":focus"))
|
||||
{
|
||||
$('#'+sFieldId).tooltip('open');
|
||||
}
|
||||
$('#'+sFieldId).attr('data-tooltip-content', sMessage);
|
||||
CombodoTooltip.InitTooltipFromMarkup($('#'+sFieldId), true);
|
||||
$('#'+sFieldId)[0]._tippy.show();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#v_'+sFieldId).parent('.ibo-prop--apply').removeClass('ui-state-error');
|
||||
if ($('#'+sFieldId).data('uiTooltip'))
|
||||
{
|
||||
$('#'+sFieldId).tooltip('close');
|
||||
}
|
||||
$('#'+sFieldId).removeAttr('title');
|
||||
// Remove the element from the array
|
||||
iFieldIdPos = jQuery.inArray(sFieldId, oFormValidation[sFormId]);
|
||||
if (iFieldIdPos > -1)
|
||||
|
||||
Reference in New Issue
Block a user