-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
update alert documentation without jquery #27062
Conversation
5a664f2
to
bd25b32
Compare
@@ -76,7 +76,10 @@ You can see this in action with a live demo: | |||
Enable dismissal of an alert via JavaScript: | |||
|
|||
{% highlight js %} | |||
$('.alert').alert() | |||
var alertList = document.querySelectorAll('.alert') | |||
alertList.forEach(function (alert) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe
var alertList = document.querySelectorAll('.alert')
Array.from(alertList).forEach(...);
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array.from
isn't widely supported and we can use forEach
on NodeList so I won't change this line but thank you for your feedback @vsn4ik it's always appreciated 😉
@Johann-S: feel free to squash and merge when tests pass. |
@XhmikosR test won't pas unfortunately 😢 because for an unknown reason they fail on Sauce Labs but they works very well on my computer, do you have the time to check that on your computer ? |
Rewrite our alert page documentation without the use of jQuery