From c5208e51ae1739f11fa6210ed91d1f629063c63b Mon Sep 17 00:00:00 2001 From: Stephen Kraffmiller Date: Fri, 15 Apr 2022 14:39:02 -0400 Subject: [PATCH 1/7] #7565 cleanup additional pages --- src/main/webapp/dataset-license-terms.xhtml | 8 ++-- src/main/webapp/dataverse.xhtml | 18 +++------ src/main/webapp/dataverseuser.xhtml | 9 ++--- src/main/webapp/editFilesFragment.xhtml | 41 ++++++++++----------- 4 files changed, 34 insertions(+), 42 deletions(-) diff --git a/src/main/webapp/dataset-license-terms.xhtml b/src/main/webapp/dataset-license-terms.xhtml index 0874f6939d9..7430efff63c 100644 --- a/src/main/webapp/dataset-license-terms.xhtml +++ b/src/main/webapp/dataset-license-terms.xhtml @@ -11,7 +11,7 @@ jsf:rendered="#{dataverseSession.user.authenticated and empty editMode and !widgetWrapper.widgetView and permissionsWrapper.canIssueUpdateDatasetCommand(DatasetPage.dataset)}"> + update="@form,:messagePanel" disabled="#{DatasetPage.lockedFromEdits}"> #{bundle['file.dataFilesTab.terms.editTermsBtn']} @@ -50,7 +50,7 @@ - + @@ -491,7 +491,7 @@ + update=":datasetForm" oncomplete="PF('viewGuestbook').show();"/> @@ -530,7 +530,7 @@ + update=":datasetForm" oncomplete="PF('viewGuestbook').show();"/> diff --git a/src/main/webapp/dataverse.xhtml b/src/main/webapp/dataverse.xhtml index e7bfb49cd96..572bcf40300 100644 --- a/src/main/webapp/dataverse.xhtml +++ b/src/main/webapp/dataverse.xhtml @@ -97,8 +97,7 @@ style="display:none" process="@this :dataverseForm:selectHostDataverse" update=":dataverseForm,:breadCrumbPanel" - action="#{DataversePage.updateOwnerDataverse()}" - oncomplete="bind_bsui_components();"> + action="#{DataversePage.updateOwnerDataverse()}"> @@ -221,15 +220,13 @@
+ actionListener="#{DataversePage.dataverse.addDataverseContact(valCount.index + 1)}"> + actionListener="#{DataversePage.dataverse.removeDataverseContact(valCount.index)}"> @@ -323,16 +320,14 @@ update="@widgetVar(optionBlock)" process="@this" rendered="#{!mdb.showDatasetFieldTypes and (mdb.selected or mdb.required) and !DataversePage.openMetadataBlock and !DataversePage.inheritMetadataBlockFromParent}" - actionListener="#{DataversePage.showDatasetFieldTypes(mdb.id)}" - oncomplete="javascript:bind_bsui_components();"> + actionListener="#{DataversePage.showDatasetFieldTypes(mdb.id)}"> + actionListener="#{DataversePage.showDatasetFieldTypes(mdb.id, false)}"> @@ -374,7 +369,6 @@ @@ -532,7 +526,7 @@
  • - +
  • diff --git a/src/main/webapp/dataverseuser.xhtml b/src/main/webapp/dataverseuser.xhtml index cb922a0164d..f02acf6ce25 100644 --- a/src/main/webapp/dataverseuser.xhtml +++ b/src/main/webapp/dataverseuser.xhtml @@ -54,7 +54,7 @@ - + @@ -369,8 +369,7 @@
    + action="#{DataverseUserPage.remove(item.id)}" update="@form">
    @@ -394,13 +393,13 @@
  • + actionListener="#{DataverseUserPage.edit}" update="@form">
  • + actionListener="#{DataverseUserPage.changePassword}" update="@form">
  • diff --git a/src/main/webapp/editFilesFragment.xhtml b/src/main/webapp/editFilesFragment.xhtml index 883949d0441..3d694e996ee 100644 --- a/src/main/webapp/editFilesFragment.xhtml +++ b/src/main/webapp/editFilesFragment.xhtml @@ -148,7 +148,7 @@ process="filesTable" update=":datasetForm:filesTable, @([id$=filesButtons])" label="#{bundle['file.selectToAddBtn']}" - oncomplete="javascript:bind_bsui_components();uploadFinished(PF('fileUploadWidget'));" + oncomplete="uploadFinished(PF('fileUploadWidget'));" onstart="javascript:uploadWidgetDropRemoveMsg();uploadStarted();" onerror="javascript:uploadFailure();" sizeLimit="#{EditDatafilesPage.getMaxFileUploadSizeInBytes()}" @@ -298,9 +298,9 @@
    - -
    @@ -643,8 +643,7 @@ + update="filesTable,:messagePanel"/> @@ -828,8 +827,8 @@
    - - + +
    @@ -849,8 +848,8 @@
    - - + +
    @@ -860,8 +859,8 @@

    - -
    @@ -947,8 +946,8 @@ -->
    - - + +
    From 9d06b451a5c325c8903010ff733393f3f9cd49c8 Mon Sep 17 00:00:00 2001 From: Stephen Kraffmiller Date: Fri, 15 Apr 2022 15:29:29 -0400 Subject: [PATCH 2/7] #7565 more cleanup --- src/main/webapp/editdatafiles.xhtml | 4 ++-- src/main/webapp/file-edit-button-fragment.xhtml | 4 ++-- src/main/webapp/file.xhtml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/editdatafiles.xhtml b/src/main/webapp/editdatafiles.xhtml index aa4eb5f228c..4be14f2c682 100644 --- a/src/main/webapp/editdatafiles.xhtml +++ b/src/main/webapp/editdatafiles.xhtml @@ -75,9 +75,9 @@ - +
    diff --git a/src/main/webapp/file-edit-button-fragment.xhtml b/src/main/webapp/file-edit-button-fragment.xhtml index fd7d116e63d..4975bc22636 100644 --- a/src/main/webapp/file-edit-button-fragment.xhtml +++ b/src/main/webapp/file-edit-button-fragment.xhtml @@ -49,7 +49,7 @@ + oncomplete="PF('accessPopup').show();"> @@ -110,7 +110,7 @@
  • + oncomplete="PF('editProvenancePopup').show();"> #{bundle['file.provenance']} diff --git a/src/main/webapp/file.xhtml b/src/main/webapp/file.xhtml index f5232623822..106e6b2387c 100644 --- a/src/main/webapp/file.xhtml +++ b/src/main/webapp/file.xhtml @@ -327,7 +327,7 @@
    - + From 81e92b99b1e2a8f0c6644a698567cc1fbb8bdf78 Mon Sep 17 00:00:00 2001 From: Stephen Kraffmiller Date: Wed, 20 Apr 2022 10:38:37 -0400 Subject: [PATCH 3/7] #7565 more pages --- src/main/webapp/filesFragment.xhtml | 20 ++++++++++---------- src/main/webapp/guestbook.xhtml | 8 ++++---- src/main/webapp/harvestclients.xhtml | 24 ++++++++++++------------ src/main/webapp/harvestsets.xhtml | 16 ++++++++-------- src/main/webapp/manage-groups.xhtml | 4 ++-- 5 files changed, 36 insertions(+), 36 deletions(-) diff --git a/src/main/webapp/filesFragment.xhtml b/src/main/webapp/filesFragment.xhtml index 9dcd1fa2064..deba02f4815 100644 --- a/src/main/webapp/filesFragment.xhtml +++ b/src/main/webapp/filesFragment.xhtml @@ -32,13 +32,13 @@ - +
  • - + @@ -105,10 +105,10 @@ - + - + @@ -324,14 +324,14 @@   - +   - +

    @@ -412,7 +412,7 @@ disabled="#{false and DatasetPage.lockedFromDownload}" onclick="if (!testFilesSelected()) return false;" action="#{DatasetPage.startDownloadSelectedOriginal()}" - update="@form" oncomplete="bind_bsui_components();showPopup();"> + update="@form" oncomplete="showPopup();"> #{bundle.download}
    @@ -428,7 +428,7 @@
  • @@ -438,7 +438,7 @@
  • @@ -451,7 +451,7 @@ #{bundle['file.requestAccess']} diff --git a/src/main/webapp/guestbook.xhtml b/src/main/webapp/guestbook.xhtml index 76af9e02ab4..3528ff5f032 100644 --- a/src/main/webapp/guestbook.xhtml +++ b/src/main/webapp/guestbook.xhtml @@ -153,13 +153,13 @@
    - + - + @@ -176,13 +176,13 @@
    - + - + diff --git a/src/main/webapp/harvestclients.xhtml b/src/main/webapp/harvestclients.xhtml index 4ff5dbbdbf1..5c7b3482ed3 100644 --- a/src/main/webapp/harvestclients.xhtml +++ b/src/main/webapp/harvestclients.xhtml @@ -31,7 +31,7 @@ + oncomplete="PF('newHarvestingClientForm').show();handleResizeDialog('newHarvestingClientDialog');"> #{bundle['harvestclients.btn.add']}
    @@ -88,7 +88,7 @@ + oncomplete="PF('newHarvestingClientForm').show();handleResizeDialog('newHarvestingClientDialog');"> #{bundle['harvestclients.btn.add']}
    @@ -125,7 +125,7 @@ @@ -133,7 +133,7 @@ @@ -283,7 +283,7 @@ #{bundle.next} @@ -365,14 +365,14 @@ #{bundle.previous} #{bundle.next} @@ -459,14 +459,14 @@ #{bundle.previous} #{bundle.next} @@ -535,7 +535,7 @@ #{bundle.previous} @@ -545,7 +545,7 @@ value="#{bundle['harvestclients.newClientDialog.btn.create']}" update="newHarvestingClientDialogContent :messagePanel :harvestingClientsForm clientsTable emptyClientsTable" actionListener="#{harvestingClientsPage.createClient}" - oncomplete="if (args && !args.validationFailed) PF('newHarvestingClientForm').hide(); else PF('newHarvestingClientForm').show();bind_bsui_components();"> + oncomplete="if (args && !args.validationFailed) PF('newHarvestingClientForm').hide(); else PF('newHarvestingClientForm').show();"> + oncomplete="if (args && !args.validationFailed) PF('newHarvestingClientForm').hide(); else PF('newHarvestingClientForm').show();"> diff --git a/src/main/webapp/manage-groups.xhtml b/src/main/webapp/manage-groups.xhtml index 5bb42917b58..6a505e34358 100644 --- a/src/main/webapp/manage-groups.xhtml +++ b/src/main/webapp/manage-groups.xhtml @@ -24,7 +24,7 @@
    + update="explicitGroupNewDialog" oncomplete="PF('explicitGroupForm').show();handleResizeDialog('explicitGroupNewDialog');"> #{bundle['dataverse.manageGroups.createBtn']}
    @@ -70,7 +70,7 @@
    From eeac1a418c4a827ae22cf5a302f3935891a2995a Mon Sep 17 00:00:00 2001 From: Stephen Kraffmiller Date: Wed, 20 Apr 2022 11:07:35 -0400 Subject: [PATCH 4/7] #7565 still more --- src/main/webapp/manage-guestbooks.xhtml | 10 ++++------ src/main/webapp/manage-templates.xhtml | 13 +++++-------- src/main/webapp/metadataFragment.xhtml | 12 ++++-------- src/main/webapp/permissions-manage-files.xhtml | 12 +++++------- src/main/webapp/permissions-manage.xhtml | 4 ++-- .../webapp/provenance-popups-fragment.xhtml | 8 +++++--- src/main/webapp/themeAndWidgetsFragment.xhtml | 18 +++++++++--------- 7 files changed, 34 insertions(+), 43 deletions(-) diff --git a/src/main/webapp/manage-guestbooks.xhtml b/src/main/webapp/manage-guestbooks.xhtml index 95abf4c901c..7b567a09f46 100644 --- a/src/main/webapp/manage-guestbooks.xhtml +++ b/src/main/webapp/manage-guestbooks.xhtml @@ -103,18 +103,16 @@ value="#{bundle['dataset.manageGuestbooks.tab.action.btn.enable']}" rendered="#{manageGuestbooksPage.dataverse.id eq guestbook.dataverse.id and !guestbook.enabled}" action="#{manageGuestbooksPage.enableGuestbook(guestbook)}" - update="@form,:messagePanel" - oncomplete="bind_bsui_components();"/> + update="@form,:messagePanel"/> + update="@form,:messagePanel"/>
    @@ -137,7 +135,7 @@ diff --git a/src/main/webapp/manage-templates.xhtml b/src/main/webapp/manage-templates.xhtml index 26501a09ed7..48a96a3a324 100644 --- a/src/main/webapp/manage-templates.xhtml +++ b/src/main/webapp/manage-templates.xhtml @@ -87,29 +87,26 @@ value="#{bundle['dataset.manageTemplates.tab.action.btn.makeDefault']}" rendered="#{manageTemplatesPage.dataverse.defaultTemplate != template}" actionListener="#{manageTemplatesPage.makeDefault(template)}" - update="@form,:messagePanel" - oncomplete="bind_bsui_components();"/> + update="@form,:messagePanel"/> + update="@form,:messagePanel">
    + update="@form">
    @@ -134,7 +131,7 @@ update="@form,:messagePanel" action="#{manageTemplatesPage.setSelectedTemplate(template)}" rendered="#{manageTemplatesPage.dataverse.id eq template.dataverse.id}" - oncomplete="PF('deleteConfirmation').show();bind_bsui_components();"> + oncomplete="PF('deleteConfirmation').show();">
    diff --git a/src/main/webapp/metadataFragment.xhtml b/src/main/webapp/metadataFragment.xhtml index 31739c8fb8a..ef3d6016735 100755 --- a/src/main/webapp/metadataFragment.xhtml +++ b/src/main/webapp/metadataFragment.xhtml @@ -228,16 +228,14 @@ + update=":#{p:resolveClientIds('@id(editPrimitiveValueFragment)', view)}"> + update=":#{p:resolveClientIds('@id(editPrimitiveValueFragment)', view)}">
    @@ -349,16 +347,14 @@ + update=":#{p:resolveClientIds('@id(editCompoundValueFragment)', view)}"> + update=":#{p:resolveClientIds('@id(editCompoundValueFragment)', view)}">
    diff --git a/src/main/webapp/permissions-manage-files.xhtml b/src/main/webapp/permissions-manage-files.xhtml index 49e930bc2ef..122ee2b616f 100644 --- a/src/main/webapp/permissions-manage-files.xhtml +++ b/src/main/webapp/permissions-manage-files.xhtml @@ -45,7 +45,7 @@ + oncomplete="PF('assignWidget').show();handleResizeDialog('assignDialog');"> #{bundle['dataverse.permissionsFiles.usersOrGroups.assignBtn']}
    @@ -87,16 +87,14 @@ actionListener="#{manageFilePermissionsPage.grantAccessToAllRequests(access.key)}" update=":#{p:resolveClientId('rolesPermissionsForm:userGroups', view)} :#{p:resolveClientId('rolesPermissionsForm:restrictedFiles', view)} :#{p:resolveClientId('rolesPermissionsForm:fileAccessRequests', view)} :#{p:resolveClientId('rolesPermissionsForm:userGroupsRequests', view)} - :#{p:resolveClientId('rolesPermissionsForm:userGroupMessages', view)} @([id$=Messages])" - oncomplete="bind_bsui_components();"> + :#{p:resolveClientId('rolesPermissionsForm:userGroupMessages', view)} @([id$=Messages])"> #{bundle['dataverse.permissionsFiles.assignDialog.grantBtn']}
    + :#{p:resolveClientId('rolesPermissionsForm:userGroupMessages', view)} @([id$=Messages])"> #{bundle['dataverse.permissionsFiles.assignDialog.rejectBtn']} @@ -120,7 +118,7 @@ + oncomplete="PF('viewRemoveWidget').show();"> @@ -203,7 +201,7 @@ #{bundle['dataverse.permissionsFiles.files.assignBtn']} + oncomplete="PF('assignWidget').show();handleResizeDialog('assignDialog');"> #{bundle['dataverse.permissionsFiles.files.assignBtn']}
    diff --git a/src/main/webapp/permissions-manage.xhtml b/src/main/webapp/permissions-manage.xhtml index c0a7508be04..b328e4abc81 100644 --- a/src/main/webapp/permissions-manage.xhtml +++ b/src/main/webapp/permissions-manage.xhtml @@ -105,7 +105,7 @@ + oncomplete="PF('userGroupsForm').show();handleResizeDialog('userGroupDialog');"> #{bundle['dataverse.permissions.usersOrGroups.assignBtn']} @@ -163,7 +163,7 @@ rendered="#{managePermissionsPage.dvObject.instanceofDataverse and permissionsWrapper.canManagePermissions(managePermissionsPage.dvObject) and dataverseSession.user.superuser}" actionListener="#{managePermissionsPage.createNewRole}" - oncomplete="PF('roleForm').show();handleResizeDialog('rolesPermissionsDialog');bind_bsui_components();" + oncomplete="PF('roleForm').show();handleResizeDialog('rolesPermissionsDialog');" update=":#{p:resolveClientId('rolesPermissionsForm:editRolePanel', view)}"> #{bundle['dataverse.permissions.roles.add']}
    diff --git a/src/main/webapp/provenance-popups-fragment.xhtml b/src/main/webapp/provenance-popups-fragment.xhtml index adf5076d13a..da644d60f6a 100644 --- a/src/main/webapp/provenance-popups-fragment.xhtml +++ b/src/main/webapp/provenance-popups-fragment.xhtml @@ -51,7 +51,6 @@ label="#{bundle['file.editProvenanceDialog.selectToAddBtn']}" onstart="javascript:uploadStarted();" onerror="javascript:uploadFailure();" - oncomplete="bind_bsui_components();" fileLimit="1" invalidSizeMessage="#{bundle['file.edit.error.file_exceeds_limit']}"/> @@ -167,8 +166,11 @@
    - -
    diff --git a/src/main/webapp/themeAndWidgetsFragment.xhtml b/src/main/webapp/themeAndWidgetsFragment.xhtml index eddf2dbb892..b87f8af3637 100644 --- a/src/main/webapp/themeAndWidgetsFragment.xhtml +++ b/src/main/webapp/themeAndWidgetsFragment.xhtml @@ -25,7 +25,7 @@ - + @@ -48,13 +48,13 @@ #{of:format1(bundle['alt.logo'], themeWidgetFragment.editDv.name)} #{of:format1(bundle['alt.logo'], themeWidgetFragment.editDv.name)}

    - + -