From 43e5bca84941f1ce0af6deb8c27c187b746b0896 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Fri, 14 May 2021 09:33:52 +0200 Subject: [PATCH] set focus on search textbox when clicked --- .settings/org.eclipse.wst.common.component | 27 ++++++++++++++-------- src/main/webapp/js/navBar.js | 1 + 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component index 0fc0684..634a41d 100644 --- a/.settings/org.eclipse.wst.common.component +++ b/.settings/org.eclipse.wst.common.component @@ -1,27 +1,36 @@ - + + - + + - + + - + + - + + - + + - + + - + + - + + diff --git a/src/main/webapp/js/navBar.js b/src/main/webapp/js/navBar.js index e877d22..e9c6cdf 100644 --- a/src/main/webapp/js/navBar.js +++ b/src/main/webapp/js/navBar.js @@ -21,5 +21,6 @@ function navBar(){ // } $(this).closest('div.dataTables_filter').find('label input:first').animate({width:'toggle'}); $(this).toggleClass('active'); + $(this).closest('div.dataTables_filter').find('label input:first').focus(); }); } \ No newline at end of file