1
0
Fork 0
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:
Jacob Thornton 2011-08-19 20:37:12 -07:00
parent 73f1bcf717
commit f1a6972281

View file

@ -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();
}); });