AlertifyJS
AlertifyJS copied to clipboard
Notify & modal
Hi, I'm trying to make a notify alert in modal but I dont understand why it's not possible.
I have:
function MessageError(titulo, contenido, notificar, doAfterFn, doAfterFnTime) {
var mensaje =
'<div class="ajs-sidu-error" >' +
'<div class="ajs-sidu-message-icon">' +
'<i class="fa fa-times"></i>' +
'</div>' +
'<div class="ajs-sidu-message-body">' +
contenido +
'</div></div>';
` var timeAutoClose = 0;` ` if (doAfterFnTime != null) timeAutoClose = doAfterFnTime;`
if (notificar) {
alertify.set('notifier', 'position', 'top-center');
``
if (doAfterFn == null) alertify.notify(mensaje, 'sidu-message', timeAutoClose, function () { });
else alertify.notify(mensaje, 'sidu-message', timeAutoClose, doAfterFn);
} else {
return mensaje;
}
}
and works perfect but I don't get the alertify in modal, Could anyone help me ???
Thanks a lot !!!
What do you mean by you don't get the alertify in modal ? Can you provide a working sample ?
That's the working example ... I'm trying to show a notify in modal mode. The notufy works perfects but the main page still working and not blocked.