0
Hello, I have a screen where in its opening a modal may or may not be open, and also I have a tooltip on the screen that should only appear when the modal is not opened, when the modal opens the tooltip should not appear, but I still could not make it work, i need to test if the modal open then the tooltip should not be shown and if the modal does not open the tooltip should appear. I’m calling the function at:
<body onload="ShowTip()">
to show the tooltip and my modal opens by another procedure that is in another framework (intraweb Delphi) AddToInitProc('$(''#CadastroAssistenciaUsuario'').modal(''show'');');
follows my function:
$(document).ready(function ShowTip() {
if (($("#CadastroAssistenciaUsuario").data('bs.modal') || {isShown: false}).isShown) {
$('#bTuto').tooltip('hide');
} else {
$('#bTuto').tooltip('show');
}
});
But with this function it always shows whether or not the modal has opened...
If my question helped you, consider marking it as solved.
– Pedro
Hello Peter! Yes helped me a lot! Thank you, sorry I didn’t come to comment before! Thank you!
– Debora Mezzalira