1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-03-15 16:29:16 +01:00

Dev fix: Change preventDefault location to be general

- See thread 16841
This commit is contained in:
Allan Jardine 2014-04-29 15:58:17 +01:00
parent e82334589d
commit f98586dd30
2 changed files with 8 additions and 8 deletions

View File

@ -1 +1 @@
6b847666f0ad910974dd35d74a36c06c81a937b7
c5e2f8c35009f3e6bd71e49f04731e86b052d9af

View File

@ -4580,8 +4580,6 @@
var col = settings.aoColumns[ colIdx ];
_fnBindAction( attachTo, {}, function (e) {
e.preventDefault();
/* If the column is not sortable - don't to anything */
if ( col.bSortable === false ) {
return;
@ -4924,8 +4922,10 @@
} )
.bind( 'keypress.DT', oData, function (e){
if ( e.which === 13 ) {
e.preventDefault();
fn(e);
} } )
}
} )
.bind( 'selectstart.DT', function () {
/* Take the brutal approach to cancelling text selection */
return false;