MohammadYounes / MohammadYounes/AlertifyJS

Notify & modal

Open
#258 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs test case
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.