From 89bf558c0dbd42a9e754831378df18919fafcd69 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Fri, 28 Jul 2023 09:17:32 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=83=9A=E3=83=BC=E3=82=B8=E3=83=8D?= =?UTF-8?q?=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=AE=E3=83=9A=E3=83=BC?= =?UTF-8?q?=E3=82=B8=E3=81=AB=E3=82=BF=E3=83=96=E9=81=B7=E7=A7=BB=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= =?UTF-8?q?=E3=80=82Enter=E3=82=AD=E3=83=BC=E3=81=A7=E3=82=AF=E3=83=AA?= =?UTF-8?q?=E3=83=83=E3=82=AF=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=81=97=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/jskult-webapp/src/templates/bioSearchList.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ecs/jskult-webapp/src/templates/bioSearchList.html b/ecs/jskult-webapp/src/templates/bioSearchList.html index 2da95017..3996865b 100644 --- a/ecs/jskult-webapp/src/templates/bioSearchList.html +++ b/ecs/jskult-webapp/src/templates/bioSearchList.html @@ -283,6 +283,20 @@ formatNavigator: '件数: <%= totalNumber %>件 ページ数: <%= totalPage %>', callback: function(data, pagination) { $('#result_data').html(pagination_content(data)) + $('.paginationjs-pages > ul > li').not('.disabled,.active').each(function(index, val) { + // paginationにtabindexをつける + $(val).attr('tabindex', '0') + // Enterキー押下時に要素をクリックできるようにイベントを付加する + $(val).on('keypress', function(e) { + console.log(e.code) + if (e.code === 'Enter') { + $(e.target).click() + $(val).off('keypress') + return false + } + $(val).off('keypress') + }) + }) } }) });