Skip to content
Permalink
Browse files
use jquery for dblclick handler to access event.target
  • Loading branch information
jzaefferer committed Jun 20, 2007
1 parent 03c623c commit 6f51075
Showing 1 changed file with 2 additions and 2 deletions.
@@ -125,13 +125,13 @@ function test(name, callback, nowait) {
else
n.style.display = "none";
};
b.ondblclick = function(event) {
$(b).dblclick(function(event) {
var target = jQuery(event.target).filter("strong").clone();
if ( target.length ) {
target.children().remove();
location.href = location.href.match(/^(.+?)(\?.*)?$/)[1] + "?" + encodeURIComponent($.trim(target.text()));
}
};
});
li.appendChild( b );
li.appendChild( ol );

0 comments on commit 6f51075

Please sign in to comment.