N°4667 - Remove call to tooltip function

This commit is contained in:
Molkobain
2022-01-23 16:10:42 +01:00
committed by acognet
parent 102528195b
commit 1f42f897d8
2 changed files with 6 additions and 4 deletions

View File

@@ -33,7 +33,7 @@
id="btn_export_excel_for_{{ aAreaData.sId }}"
data-toggle="modal" data-target="#modal-for-all">
<span class="fas fa-download fa-lg" style="float: right;"
data-tooltip-html-enabled="true" data-tooltip-content="{{ 'ExcelExporter:ExportMenu'|dict_s }}"></span>
data-tooltip-content="{{ 'ExcelExporter:ExportMenu'|dict_s }}"></span>
</a>
{% endif %}
</div>

View File

@@ -555,9 +555,11 @@ function ValidateWithPattern(sFieldId, bMandatory, sPattern, sFormId, aForbidden
else
{
$('#v_'+sFieldId).parent('.ibo-prop--apply').removeClass('ui-state-error');
$('#'+sFieldId).removeAttr('data-tooltip-instantiated');
$('#'+sFieldId).removeAttr('data-tooltip-content');
$('#'+sFieldId)[0]._tippy.destroy();
if ($('#'+sFieldId)[0]._tippy ) {
$('#'+sFieldId)[0]._tippy.destroy();
$('#'+sFieldId).removeAttr('data-tooltip-instantiated');
$('#'+sFieldId).removeAttr('data-tooltip-content');
}
// Remove the element from the array
iFieldIdPos = jQuery.inArray(sFieldId, oFormValidation[sFormId]);
if (iFieldIdPos > -1)