Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set css display to "" on notification close #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ghiculescu
Copy link

When the notification is hidden (via boostrap-alert), a style of display:none is added. By removing this styling, the same notification object can be re-used.

ie. you can do:

var _notif = $('.elem').notify();
_notif.show();
// wait some time for it to fade out, then...
_notif.show() // this will display again; previously nothing would be visible due to the display:none

When the notification is hidden (via boostrap-alert), a style of display:none is added. By removing this styling, the same notification object can be re-used. ie. you can do var _notif = $('.elem').notify(); _notif.show(); then wait some time for it to fade out, then do _notif.show() again and it will display.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant