diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 35191c7d..eaf1ca7a 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -6b847666f0ad910974dd35d74a36c06c81a937b7 +c5e2f8c35009f3e6bd71e49f04731e86b052d9af diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 3a925814..c24ac6e5 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -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; } ); }