Yes, a little different.
$('.folder a').click(function(e) {
e.preventDefault();
}).dblclick(function() {
window.location.replace($(this).attr("href"));
});
In fact, I would use .on('click')and .on('dblclick'), but in any case, they would be shackled as described above.
source
share