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

notify options should be cleared after hide() #23

Open
larsbo opened this issue Jan 30, 2013 · 3 comments
Open

notify options should be cleared after hide() #23

larsbo opened this issue Jan 30, 2013 · 3 comments

Comments

@larsbo
Copy link

larsbo commented Jan 30, 2013

i create a notify message like

var notifyContainer = $('.top-right');
var message = notifyContainer.notify({
message: { html: "<div>some html stuff here</div>" },
fadeOut: { enabled: false },
closable: false
});

and hide it with message.hide().

but when i fire another notfiy like

notifyContainer.notify({
message: { text: 'some text this time' }
}).show();

there appears still the old one with the old html text, options like closable: false.

i think there should be a way to clear this. i tried it by reset each option manually but that is not the best way i guess ;-)

@jodytate
Copy link

I'm seeing this same behavior when html is used as the message. The first notification's html persists and the second notifications html message doesn't completely override the previous one's html.

@amrography
Copy link

I add clear it manually in my code:
notifyContainer.html('')

@jtal
Copy link

jtal commented Apr 12, 2017

It appears there isnt an option for this. Are people just watching the onClosed event and then calling notifyContainer.html('') ?

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

No branches or pull requests

4 participants