HTMLGuyLLC / jAlert

jQuery alert/modal/lightbox plugin
https://htmlguyllc.github.io/jAlert/
MIT License
76 stars 35 forks source link

How to know if alert is visible? #70

Closed jfoclpf closed 3 years ago

jfoclpf commented 3 years ago

After creating the alert

var jAlertOnAppResume = $.jAlert({
        title: 'PDF digitalmente assinado?',
        content: 'Consegiu assinar o PDF com sucesso, fazendo uso da sua Chave Móvel Digital?',
        theme: 'dark_blue'
})

I can close it and open it with public methods closeAlert and showAlert but how do I know if the alert is closed/hidden or open/visible?

HTMLGuyLLC commented 3 years ago

Try $.jAlert('current') - It will return the currently open instance (if any)

jfoclpf commented 3 years ago

great, thanks