mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
fix drag knob in firefox #7
This commit is contained in:
parent
73f1bcf717
commit
f1a6972281
@ -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);
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user