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
1 changed files with 3 additions and 4 deletions

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