diff options
| author | Johann-S <[email protected]> | 2018-08-23 21:06:35 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2018-11-13 08:47:32 +0200 |
| commit | 2f81ab007cad06dd333a7431a3a653f812bbf246 (patch) | |
| tree | 0e7d208c054dcd816c63caf780deed48970f4bd3 /js | |
| parent | 16cf76ff1aa20f5b10d782f1170f6a1c36bcae0a (diff) | |
| download | bootstrap-2f81ab007cad06dd333a7431a3a653f812bbf246.tar.xz bootstrap-2f81ab007cad06dd333a7431a3a653f812bbf246.zip | |
Fix toast documentation page.
Diffstat (limited to 'js')
| -rw-r--r-- | js/tests/visual/toast.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/tests/visual/toast.html b/js/tests/visual/toast.html index 0daf8b521..6897022c0 100644 --- a/js/tests/visual/toast.html +++ b/js/tests/visual/toast.html @@ -26,7 +26,7 @@ </div> <div class="notifications"> - <div class="toast" data-delay='{"show": 0, "hide": 2000}'> + <div id="toastAutoHide" class="toast"> <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> @@ -54,6 +54,10 @@ <script src="../../dist/toast.js"></script> <script> $(function () { + $('#toastAutoHide').attr('data-delay', JSON.stringify({ + show: 0, + hide: 2000 + })) $('.toast').toast() $('#btnShowToast').on('click', function () { |
