Skip to content
This repository has been archived by the owner on Jun 26, 2022. It is now read-only.

Commit

Permalink
ENH: ad-hoc patch of newer jquery.dataTables to autfocus on search box
Browse files Browse the repository at this point in the history
Picked up from cb3d8d932ab3f38fcc129db671809e5f3aceb0d5 commit within datalad codebase
which is present within older version of dataTables.  With this visitors immediately
focus on search box and can start searching!
  • Loading branch information
yarikoptic committed Jun 26, 2020
1 parent 4f452b0 commit ff008d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/jquery.dataTables-1.10.21.js
Original file line number Diff line number Diff line change
Expand Up @@ -4179,7 +4179,7 @@
var language = settings.oLanguage;
var previousSearch = settings.oPreviousSearch;
var features = settings.aanFeatures;
var input = '<input type="search" class="'+classes.sFilterInput+'"/>';
var input = '<input type="search" class="'+classes.sFilterInput+'" autofocus="autofocus"/>';

var str = language.sSearch;
str = str.match(/_INPUT_/) ?
Expand Down

0 comments on commit ff008d0

Please sign in to comment.