diff --git a/js/functions.js b/js/functions.js index 66f27b7bb5..9cc21f21c7 100644 --- a/js/functions.js +++ b/js/functions.js @@ -613,13 +613,16 @@ function checkTransmitDump(theForm, theAction) } // end of the 'checkTransmitDump()' function $(document).ready(function() { - $('*').noSelect(); + var $clickable_tr = $('tr.odd:not(.noclick), tr.even:not(.noclick)'); + if ($clickable_tr.length > 0) { + $clickable_tr.parents('table').noSelect(); + } /** * 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. */ - $('tr.odd:not(.noclick), tr.even:not(.noclick)').live('click',function(e) { + $clickable_tr.live('click',function(e) { // do not trigger when clicked on anchor if ($(e.target).is('a, img, a *')) { return;