mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
fix drag knob in firefox #7
This commit is contained in:
parent
73f1bcf717
commit
f1a6972281
1 changed files with 3 additions and 4 deletions
|
@ -92,10 +92,9 @@ $(document).ready(function(){
|
||||||
|
|
||||||
// Copy code blocks in docs
|
// Copy code blocks in docs
|
||||||
$(".copy-code").focus(function() {
|
$(".copy-code").focus(function() {
|
||||||
$(this).select();
|
var el = this;
|
||||||
});
|
// push select to event loop for chrome :{o
|
||||||
$(".copy-code").mouseup(function(e) {
|
setTimeout(function () { $(el).select(); }, 1);
|
||||||
e.preventDefault();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue