From 4c1de0edcc62be76d9767af2dc068aac0b4383b7 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 27 Feb 2011 09:59:21 -0500 Subject: [PATCH] Remove an incorrect second binding of the click event --- js/functions.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/functions.js b/js/functions.js index 9d62ee8c7..f1542dd35 100644 --- a/js/functions.js +++ b/js/functions.js @@ -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()