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

pnotify close not working #395

Open
alekhyageddam opened this issue Jun 11, 2020 · 0 comments
Open

pnotify close not working #395

alekhyageddam opened this issue Jun 11, 2020 · 0 comments

Comments

@alekhyageddam
Copy link

alekhyageddam commented Jun 11, 2020

Hi, I'm still facing an issue with closing the pnotify notification. I'm using bootstrap3 for styling.

My closer button looks like this:
image

I have a function called displayErrorMessage = function(msg){
var error = new PNotify({

});
}.

outside this function, in the same file, i have another function called eventTriggers. within this function, I have written:
var errorMsg = nx.common.displayErrorMessage();
$('.ui-pnotify-closer*').click(function(){
errorMsg.remove();
});

My main aim is to remove the notif upon clicking the 'X' button. I've read some places that if you have history attribute in the PNotify instantiation, then closing the button may not work. I'm not entirely sure though, can someone help me with this.

Thanks! @ #41 @hperrin

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

1 participant