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:
parent
e82334589d
commit
f98586dd30
@ -1 +1 @@
|
||||
6b847666f0ad910974dd35d74a36c06c81a937b7
|
||||
c5e2f8c35009f3e6bd71e49f04731e86b052d9af
|
||||
|
14
media/js/jquery.dataTables.js
vendored
14
media/js/jquery.dataTables.js
vendored
@ -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;
|
||||
@ -4923,12 +4921,14 @@
|
||||
fn(e);
|
||||
} )
|
||||
.bind( 'keypress.DT', oData, function (e){
|
||||
if ( e.which === 13 ) {
|
||||
fn(e);
|
||||
} } )
|
||||
if ( e.which === 13 ) {
|
||||
e.preventDefault();
|
||||
fn(e);
|
||||
}
|
||||
} )
|
||||
.bind( 'selectstart.DT', function () {
|
||||
/* Take the brutal approach to cancelling text selection */
|
||||
return false;
|
||||
/* Take the brutal approach to cancelling text selection */
|
||||
return false;
|
||||
} );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user