aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/assets/js/application.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js
index 82cf307e9..0de6ca96f 100644
--- a/docs/assets/js/application.js
+++ b/docs/assets/js/application.js
@@ -92,10 +92,9 @@ $(document).ready(function(){
// Copy code blocks in docs
$(".copy-code").focus(function() {
- $(this).select();
- });
- $(".copy-code").mouseup(function(e) {
- e.preventDefault();
+ var el = this;
+ // push select to event loop for chrome :{o
+ setTimeout(function () { $(el).select(); }, 1);
});