From ded1749d887be9b1d0ce653d0a30d8dccc8f3490 Mon Sep 17 00:00:00 2001 From: Ikram Maalej Date: Tue, 12 Oct 2021 13:45:20 +0200 Subject: [PATCH 1/2] Keep last paginated pages in focus After a pagination --- .../includes/metadataEditor/dialogs/pagination.xhtml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Kitodo/src/main/webapp/WEB-INF/templates/includes/metadataEditor/dialogs/pagination.xhtml b/Kitodo/src/main/webapp/WEB-INF/templates/includes/metadataEditor/dialogs/pagination.xhtml index 10fb74eaf52..b3886243294 100644 --- a/Kitodo/src/main/webapp/WEB-INF/templates/includes/metadataEditor/dialogs/pagination.xhtml +++ b/Kitodo/src/main/webapp/WEB-INF/templates/includes/metadataEditor/dialogs/pagination.xhtml @@ -239,8 +239,10 @@ styleClass="primary right" icon="fa fa-check fa-lg" iconPos="right" - onclick="PF('notifications').renderMessage({'summary':'#{msgs.paginationSaving}','severity':'info'});$('loadingScreen').show()" - update="notifications,paginationForm:paginationSelection,@(.ui-tree),imagePreviewForm:thumbnailWrapper,metadataAccordion:logicalMetadataWrapperPanel" + onclick="window.pagesScrollPosition = $('#paginationForm\\:paginationSelection .ui-selectlistbox-listcontainer').scrollTop(); + PF('notifications').renderMessage({'summary':'#{msgs.paginationSaving}','severity':'info'});$('loadingScreen').show()" + oncomplete="$('#paginationForm\\:paginationSelection .ui-selectlistbox-listcontainer').scrollTop(pagesScrollPosition);" + update="notifications, paginationForm:paginationSelection, @(.ui-tree),imagePreviewForm:thumbnailWrapper,metadataAccordion:logicalMetadataWrapperPanel" value="#{msgs.apply}"/> Date: Wed, 20 Oct 2021 09:28:57 +0200 Subject: [PATCH 2/2] Update Kitodo/src/main/webapp/WEB-INF/templates/includes/metadataEditor/dialogs/pagination.xhtml --- .../templates/includes/metadataEditor/dialogs/pagination.xhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kitodo/src/main/webapp/WEB-INF/templates/includes/metadataEditor/dialogs/pagination.xhtml b/Kitodo/src/main/webapp/WEB-INF/templates/includes/metadataEditor/dialogs/pagination.xhtml index b3886243294..33a3166750a 100644 --- a/Kitodo/src/main/webapp/WEB-INF/templates/includes/metadataEditor/dialogs/pagination.xhtml +++ b/Kitodo/src/main/webapp/WEB-INF/templates/includes/metadataEditor/dialogs/pagination.xhtml @@ -242,7 +242,7 @@ onclick="window.pagesScrollPosition = $('#paginationForm\\:paginationSelection .ui-selectlistbox-listcontainer').scrollTop(); PF('notifications').renderMessage({'summary':'#{msgs.paginationSaving}','severity':'info'});$('loadingScreen').show()" oncomplete="$('#paginationForm\\:paginationSelection .ui-selectlistbox-listcontainer').scrollTop(pagesScrollPosition);" - update="notifications, paginationForm:paginationSelection, @(.ui-tree),imagePreviewForm:thumbnailWrapper,metadataAccordion:logicalMetadataWrapperPanel" + update="notifications, paginationForm:paginationSelection, @(.ui-tree), imagePreviewForm:thumbnailWrapper, metadataAccordion:logicalMetadataWrapperPanel" value="#{msgs.apply}"/>