diff options
| author | Jacob Thornton <[email protected]> | 2011-08-19 20:37:12 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-08-19 20:37:12 -0700 |
| commit | f1a69722817072bf71802c78a34ae74b2c4c5ecc (patch) | |
| tree | 4ffbd04af5632a571184f06c68201dd8b5a544c1 | |
| parent | 73f1bcf7179b3050d2e8e0dd65c3f87667ceed7f (diff) | |
| download | bootstrap-f1a69722817072bf71802c78a34ae74b2c4c5ecc.tar.xz bootstrap-f1a69722817072bf71802c78a34ae74b2c4c5ecc.zip | |
fix drag knob in firefox #7
| -rw-r--r-- | docs/assets/js/application.js | 7 |
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); }); |
