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_*** is not defined when call setFlash #382

Open
5 tasks
phanngocphuongbac opened this issue Mar 13, 2020 · 0 comments
Open
5 tasks

notify_*** is not defined when call setFlash #382

phanngocphuongbac opened this issue Mar 13, 2020 · 0 comments

Comments

@phanngocphuongbac
Copy link

phanngocphuongbac commented Mar 13, 2020

Prerequisites

Steps to reproduce the issue

  1. call a Yii::$app->session->setFlash('success','Register is success')
  2. reload page with javascript

Expected behavior and actual behavior

When I follow those steps, I see

(index):1111 Uncaught ReferenceError: notify_3611c307 is not defined
at (index):1111
(anonymous) @ (index):1111
setTimeout (async)
(anonymous) @ (index):1111
mightThrow @ jquery.js:3557
process @ jquery.js:3625
setTimeout (async)
(anonymous) @ jquery.js:3663
fire @ jquery.js:3291
fireWith @ jquery.js:3421
fire @ jquery.js:3429
fire @ jquery.js:3291
fireWith @ jquery.js:3421
ready @ jquery.js:3901
completed @ jquery.js:3911

at (index):1111:
setTimeout(function () {$.notify({"message":"Register is success","icon":"glyphicon glyphicon-ok-sign","title":"Success!","url":"","target":"_blank"}, notify_3611c307);}, 500);

I was expecting show alert

Environment

Browsers

  • Google Chrome
  • Mozilla Firefox
  • Internet Explorer

Operating System

  • Windows

Libraries

  • jQuery version: v3.4.1
  • yii2-widgets version: v3.4.1

Isolating the problem

  • [] This bug happens when using yii2-widgets without other plugins.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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