From 18b0fa1482b2056855917367f64374492801f1fb Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 16 Nov 2010 08:06:02 -0500 Subject: [PATCH] inline editable fields were not highlighted or marked in horizontal mode --- js/functions.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/js/functions.js b/js/functions.js index 8bd944957..01db2e636 100644 --- a/js/functions.js +++ b/js/functions.js @@ -847,23 +847,27 @@ function checkTransmitDump(theForm, theAction) } // end of the 'checkTransmitDump()' function /** - * For row marking in horizontal mode (use "live" so that it works also for + * Row marking in horizontal mode (use "live" so that it works also for * next pages reached via AJAX); a tr may have the class noclick to remove * this behavior. */ $(document).ready(function() { $('tr.odd:not(.noclick), tr.even:not(.noclick)').live('click',function() { - $(this).toggleClass('marked'); + var $tr = $(this); + $tr.toggleClass('marked'); + $tr.children().toggleClass('marked'); }); }) /** - * For row highlighting in horizontal mode (necessary for IE 6; use "live" + * Row highlighting in horizontal mode (use "live" * so that it works also for pages reached via AJAX) */ $(document).ready(function() { $('tr.odd, tr.even').live('hover',function() { - $(this).toggleClass('hover'); + var $tr = $(this); + $tr.toggleClass('hover'); + $tr.children().toggleClass('hover'); }); })