Core: allow use of select & buttons in the header. Fixes #625

This commit is contained in:
Mottie 2014-05-24 10:37:28 -05:00
parent d77dc71d55
commit a3615b3910

View File

@ -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()