mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-10-08 13:44:18 +00:00
Core: add cssAllowClicks option
This commit is contained in:
parent
1039ef6eb5
commit
278fbccad7
@ -775,6 +775,14 @@
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr id="cssallowclicks">
|
||||
<td><span class="permalink">cssAllowClicks</span></td>
|
||||
<td>String</td>
|
||||
<td>"tablesorter-allow-clicks"</td>
|
||||
<td>Class name added to table header which allows clicks to bubble up. (<span class="version">v2.18.1</span>).</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr id="dateformat">
|
||||
<td><a href="#" class="permalink">dateFormat</a></td>
|
||||
<td>String</td>
|
||||
|
@ -92,6 +92,7 @@
|
||||
cssChildRow : 'tablesorter-childRow', // class name indiciating that a row is to be attached to the its parent
|
||||
cssIcon : 'tablesorter-icon', // if this class exists, a <i> will be added to the header automatically
|
||||
cssInfoBlock : 'tablesorter-infoOnly', // don't sort tbody with this class name (only one class name allowed here!)
|
||||
cssAllowClicks : 'tablesorter-allowClicks', // class name added to table header which allows clicks to bubble up
|
||||
|
||||
// *** selectors
|
||||
selectorHeaders : '> thead th, > thead td',
|
||||
@ -1286,7 +1287,9 @@
|
||||
// set timer on mousedown
|
||||
if (type === 'mousedown') {
|
||||
downTime = new Date().getTime();
|
||||
return /(input|select|button|textarea)/i.test(e.target.tagName) ? '' : !c.cancelSelection;
|
||||
return /(input|select|button|textarea)/i.test(e.target.tagName) ||
|
||||
// allow clicks to contents of selected cells
|
||||
$(e.target).closest('td,th').hasClass(c.cssAllowClicks) ? '' : !c.cancelSelection;
|
||||
}
|
||||
if (c.delayInit && isEmptyObject(c.cache)) { buildCache(table); }
|
||||
// jQuery v1.2.6 doesn't have closest()
|
||||
|
Loading…
Reference in New Issue
Block a user