diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 16a20e068e..5beba46e1f 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -30,7 +30,7 @@ $(document).ready(function(){ $(".copy-code").focus(function () { var el = this; // push select to event loop for chrome :{o - setTimeout(function () { $(el).select(); }, 1); + setTimeout(function () { $(el).select(); }, 0); }); diff --git a/docs/javascript.html b/docs/javascript.html index e0d85f25a7..ca4f941a15 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -101,15 +101,9 @@
"static"
if you do not want the modal closed when the backdrop is clicked.You can activate modals on your page easily without having to write a single line of javascript. Just give an element a data-controls-modal
attribute which corresponds to a modal element id, and when clicked, it will launch your modal. To add modal options, just include them as data attributes as well.
-<a class="btn" data-controls-modal="my-modal" data-backdrop="true" >Launch Modal</a> +<a class="btn" data-controls-modal="my-modal" data-backdrop="static" >Launch Modal</a>
Notice If you want your modal to animate in and out, just add a .fade
class to your .modal
element (refer to the demo to see this in action).