From ff008d0f68631aa0ec1c6c64bf27c6cbdf8cde35 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 25 Jun 2020 23:24:15 -0400 Subject: [PATCH] ENH: ad-hoc patch of newer jquery.dataTables to autfocus on search box 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! --- assets/js/jquery.dataTables-1.10.21.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/jquery.dataTables-1.10.21.js b/assets/js/jquery.dataTables-1.10.21.js index aeb7fb9b..4343ce34 100644 --- a/assets/js/jquery.dataTables-1.10.21.js +++ b/assets/js/jquery.dataTables-1.10.21.js @@ -4179,7 +4179,7 @@ var language = settings.oLanguage; var previousSearch = settings.oPreviousSearch; var features = settings.aanFeatures; - var input = ''; + var input = ''; var str = language.sSearch; str = str.match(/_INPUT_/) ?