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

Wrong 'afterHidden' function work when many toasts #43

Open
vasek00786 opened this issue Jun 1, 2018 · 0 comments
Open

Wrong 'afterHidden' function work when many toasts #43

vasek00786 opened this issue Jun 1, 2018 · 0 comments

Comments

@vasek00786
Copy link

When on page is more than one toast , parameter 'afterHidden' wrong working. When closing any toast, function 'checkMessage' run with last param.id. Example
for (var ind=0;ind<cnt;ind++) {
var param = fldJson.params[ind] ;
jQuery.toast({
,heading:param.messageTitle
,text:param.messageText
,hideAfter: false
,afterHidden: function () {checkMessage(param.id);} //example: 1,2,3,4
});
}
//when close toast, it will run with same parameter:
checkMessage(1);
checkMessage(1);
checkMessage(1);
checkMessage(1);

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