Remove an incorrect second binding of the click event

This commit is contained in:
Marc Delisle
2011-02-27 09:59:21 -05:00
parent 9cf81c63ce
commit 4c1de0edcc

View File

@@ -2523,7 +2523,13 @@ $(document).ready(function() {
return $('a').css('cursor');
}) //todo: hover effect
.live('click',function(e) {
$(this).parent().find('input:image').click();
$this_span = $(this);
if ($this_span.closest('td').is('.inline_edit_anchor')) {
// this would bind a second click event to the inline edit
// anchor and would disturb its behavior
} else {
$this_span.parent().find('input:image').click();
}
});
}) // end of $(document).ready()