Skip to content

update alert documentation without jquery#27062

Merged
Johann-S merged 3 commits intov4-without-jqueryfrom
v4-without-jquery-doc
Aug 24, 2018
Merged

update alert documentation without jquery#27062
Johann-S merged 3 commits intov4-without-jqueryfrom
v4-without-jquery-doc

Conversation

@Johann-S
Copy link
Copy Markdown
Member

Rewrite our alert page documentation without the use of jQuery

@Johann-S Johann-S force-pushed the v4-without-jquery-doc branch from 5a664f2 to bd25b32 Compare August 13, 2018 20:44
{% highlight js %}
$('.alert').alert()
var alertList = document.querySelectorAll('.alert')
alertList.forEach(function (alert) {
Copy link
Copy Markdown
Contributor

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(...);

?

Copy link
Copy Markdown
Member Author

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 😉

@XhmikosR
Copy link
Copy Markdown
Member

@Johann-S: feel free to squash and merge when tests pass.

@Johann-S
Copy link
Copy Markdown
Member Author

@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 ?

@Johann-S Johann-S merged commit 8cb6ced into v4-without-jquery Aug 24, 2018
@Johann-S Johann-S deleted the v4-without-jquery-doc branch August 24, 2018 09:46
mike-odom pushed a commit to mike-odom/bootstrap that referenced this pull request Dec 26, 2025
mike-odom pushed a commit to mike-odom/bootstrap that referenced this pull request Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants