Skip to content

Commit

Permalink
Private URL: add popup init to supress success msg #3174 #1012
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Jun 27, 2016
1 parent 4f5adcc commit 50ae521
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/main/java/edu/harvard/iq/dataverse/DatasetPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -4326,6 +4326,12 @@ public void setPrivateUrl(PrivateUrl privateUrl) {
this.privateUrl = privateUrl;
}

public void initPrivateUrlPopUp() {
if (privateUrl != null) {
setPrivateUrlJustCreatedToFalse();
}
}

boolean privateUrlWasJustCreated;

public boolean isPrivateUrlWasJustCreated() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/dataset.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</ul>
</li>
<li>
<p:commandLink id="privateUrl" onclick="PF('privateUrlConfirmation').show()">
<p:commandLink id="privateUrl" oncomplete="PF('privateUrlConfirmation').show()" action="#{DatasetPage.initPrivateUrlPopUp()}" update="privateUrlPanel">
<h:outputText value="#{bundle['dataset.editBtn.itemLabel.privateUrl']}" />
</p:commandLink>
</li>
Expand Down

0 comments on commit 50ae521

Please sign in to comment.