1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-22 05:03:16 +02:00

Remove the show delay for our toast plugin

This commit is contained in:
Johann-S
2018-09-18 14:37:40 +02:00
committed by XhmikosR
parent 4cac833447
commit 557d5ac74d
4 changed files with 17 additions and 63 deletions

View File

@@ -26,7 +26,7 @@
</div>
<div class="notifications">
<div id="toastAutoHide" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
<div id="toastAutoHide" class="toast" role="alert" aria-live="assertive" aria-atomic="true" data-delay="2000">
<div class="toast-header">
<img class="rounded mr-2" data-src="holder.js/20x20?size=1&text=.&bg=#007aff" alt="">
<strong class="mr-auto">Bootstrap</strong>
@@ -60,10 +60,6 @@
<script src="../../dist/toast.js"></script>
<script>
$(function () {
$('#toastAutoHide').attr('data-delay', JSON.stringify({
show: 0,
hide: 2000
}))
$('.toast').toast()
$('#btnShowToast').on('click', function () {