MohammadYounes / MohammadYounes/AlertifyJS
Notify & modal
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.1k
- Forks
- 294
- PR merge metrics
- No merged PRs in 30d
Description
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 !!!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided MessageError function and trace the alertify.notify call in the notificar branch, including its custom message markup and callback arguments. Reproduce the reported attempt with a modal and determine the expected interaction between the notification and modal; done means the intended alert is displayed correctly or the limitation is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100