mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Core: allow use of select & buttons in the header. Fixes #625
This commit is contained in:
parent
d77dc71d55
commit
a3615b3910
@ -1225,7 +1225,7 @@
|
|||||||
// set timer on mousedown
|
// set timer on mousedown
|
||||||
if (type === 'mousedown') {
|
if (type === 'mousedown') {
|
||||||
downTime = new Date().getTime();
|
downTime = new Date().getTime();
|
||||||
return e.target.tagName === "INPUT" ? '' : !c.cancelSelection;
|
return /(input|select|button|textarea)/i.test(e.target.tagName) ? '' : !c.cancelSelection;
|
||||||
}
|
}
|
||||||
if (c.delayInit && isEmptyObject(c.cache)) { buildCache(table); }
|
if (c.delayInit && isEmptyObject(c.cache)) { buildCache(table); }
|
||||||
// jQuery v1.2.6 doesn't have closest()
|
// jQuery v1.2.6 doesn't have closest()
|
||||||
|
Loading…
Reference in New Issue
Block a user