Disable text selection only for shift-click enabled table
This commit is contained in:
parent
6665c1a889
commit
b140a6091c
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user