Skip to content

Commit

Permalink
Fix checksum flashing and rebinding issues on download [ref #7081]
Browse files Browse the repository at this point in the history
  • Loading branch information
mheppler committed Jan 29, 2021
1 parent 89023ba commit 85755ba
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/main/webapp/filesFragment.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@
<p:commandLink rendered="#{!(DatasetPage.downloadPopupRequired)}"
styleClass="btn btn-default btn-download"
disabled="#{false and DatasetPage.lockedFromDownload}"
update="@form"
update="@form" oncomplete="bind_bsui_components();"
actionListener="#{DatasetPage.validateFilesForDownload(false, false)}">
<span class="glyphicon glyphicon-download-alt"/> #{bundle.download}
</p:commandLink>
Expand All @@ -407,7 +407,7 @@
styleClass="btn btn-default btn-download"
disabled="#{false and DatasetPage.lockedFromDownload}"
action="#{DatasetPage.validateFilesForDownload(true, false)}"
update="@form" oncomplete="">
update="@form" oncomplete="bind_bsui_components();">
<span class="glyphicon glyphicon-download-alt"/> #{bundle.download}
</p:commandLink>
</div>
Expand All @@ -422,30 +422,30 @@
<li >
<p:commandLink rendered="#{!(DatasetPage.downloadPopupRequired)}"
disabled="#{false and DatasetPage.lockedFromDownload}"
update="@form"
update="@form" oncomplete="bind_bsui_components();"
actionListener="#{DatasetPage.validateFilesForDownload(false, true)}">
#{bundle.downloadOriginal}
</p:commandLink>
<!-- guest book or terms of use, etc. enabled - open "download popup" first: -->
<p:commandLink rendered="#{DatasetPage.downloadPopupRequired}"
disabled="#{false and DatasetPage.lockedFromDownload}"
action="#{DatasetPage.validateFilesForDownload(true, true)}"
update="@form" oncomplete="">
update="@form" oncomplete="bind_bsui_components();">
#{bundle.downloadOriginal}
</p:commandLink>
</li>
<li> <!--jsf:rendered="# {DatasetPage.isTabularDataSelected()}"-->
<p:commandLink rendered="#{!(DatasetPage.downloadPopupRequired)}"
disabled="#{false and DatasetPage.lockedFromDownload}"
update="@form"
update="@form" oncomplete="bind_bsui_components();"
actionListener="#{DatasetPage.validateFilesForDownload(false, false)}">
#{bundle.downloadArchival}
</p:commandLink>
<!-- guest book or terms of use, etc. enabled - open "download popup" first: -->
<p:commandLink rendered="#{DatasetPage.downloadPopupRequired}"
disabled="#{false and DatasetPage.lockedFromDownload}"
action="#{DatasetPage.validateFilesForDownload(true, false)}"
update="@form" oncomplete="">
update="@form" oncomplete="bind_bsui_components();">
#{bundle.downloadArchival}
</p:commandLink>
</li>
Expand All @@ -454,7 +454,8 @@

<p:commandLink rendered="#{DatasetPage.fileAccessRequestMultiButtonRequired}"
styleClass="btn btn-default btn-request"
update="@form" action="#{DatasetPage.requestAccessMultipleFiles()}"
action="#{DatasetPage.requestAccessMultipleFiles()}"
update="@form" oncomplete="bind_bsui_components();"
disabled="#{DatasetPage.locked}">
<span class="glyphicon glyphicon-bullhorn"/> #{bundle['file.requestAccess']}
</p:commandLink>
Expand Down Expand Up @@ -554,7 +555,7 @@
</div>
<!-- END: File Options -->
</div>
</p:column>
</p:column>
</p:dataTable>

<!-- Files Tree -->
Expand Down

0 comments on commit 85755ba

Please sign in to comment.