0
0
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:
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").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);
});