From 0e6730f7e9e0a91962518fadac8b2279ddf9fd13 Mon Sep 17 00:00:00 2001 From: Arved Solth Date: Thu, 7 Jan 2021 17:14:41 +0100 Subject: [PATCH] Reset datatable page to index 0 after filtering --- .../WEB-INF/templates/includes/processes/processList.xhtml | 1 + .../webapp/WEB-INF/templates/includes/tasks/taskList.xhtml | 1 + .../webapp/WEB-INF/templates/includes/users/userList.xhtml | 1 + Kitodo/src/main/webapp/pages/processes.xhtml | 1 + Kitodo/src/main/webapp/pages/tasks.xhtml | 1 + Kitodo/src/main/webapp/pages/users.xhtml | 3 ++- 6 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Kitodo/src/main/webapp/WEB-INF/templates/includes/processes/processList.xhtml b/Kitodo/src/main/webapp/WEB-INF/templates/includes/processes/processList.xhtml index c09b2f2e8c4..a3250092c4f 100644 --- a/Kitodo/src/main/webapp/WEB-INF/templates/includes/processes/processList.xhtml +++ b/Kitodo/src/main/webapp/WEB-INF/templates/includes/processes/processList.xhtml @@ -20,6 +20,7 @@ diff --git a/Kitodo/src/main/webapp/pages/tasks.xhtml b/Kitodo/src/main/webapp/pages/tasks.xhtml index 8fe3e29cbb4..948b8418882 100644 --- a/Kitodo/src/main/webapp/pages/tasks.xhtml +++ b/Kitodo/src/main/webapp/pages/tasks.xhtml @@ -37,6 +37,7 @@ value="#{CurrentTaskForm.filter}" placeholder="#{msgs.filter}"> diff --git a/Kitodo/src/main/webapp/pages/users.xhtml b/Kitodo/src/main/webapp/pages/users.xhtml index 5fa6b210a19..0ec4a144ce1 100644 --- a/Kitodo/src/main/webapp/pages/users.xhtml +++ b/Kitodo/src/main/webapp/pages/users.xhtml @@ -81,7 +81,8 @@ value="#{UserForm.filter}" placeholder="#{msgs.filter}"> + onstart="PF('usersTable').getPaginator().setPage(0);" + update="usersTabView:usersTable sticky-notifications"/>