diff options
author | Johann-S <johann.servoire@gmail.com> | 2018-08-23 22:06:35 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2018-11-13 09:47:32 +0300 |
commit | 2f81ab007cad06dd333a7431a3a653f812bbf246 (patch) | |
tree | 0e7d208c054dcd816c63caf780deed48970f4bd3 /js/tests/visual/toast.html | |
parent | 16cf76ff1aa20f5b10d782f1170f6a1c36bcae0a (diff) |
Fix toast documentation page.
Diffstat (limited to 'js/tests/visual/toast.html')
-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 0daf8b521c..6897022c06 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 () { |