Mercurial > hg > ismi-richfaces
diff src/main/webapp/browse/entityDetails.xhtml @ 194:c7fec83ab69a
fix bugs with make-public buttons in entity details form. Closes #152.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 07 Dec 2018 15:47:06 +0100 |
parents | 0d31c8be7c31 |
children |
line wrap: on
line diff
--- a/src/main/webapp/browse/entityDetails.xhtml Wed Dec 05 18:48:23 2018 +0100 +++ b/src/main/webapp/browse/entityDetails.xhtml Fri Dec 07 15:47:06 2018 +0100 @@ -73,11 +73,13 @@ <a4j:commandButton value="Make entity public" title="Change publication state of this entity" rendered="#{!Session.entDetailsForm.entity.isPublic}" + render="entityDetailsPanel" style="margin-right:10px;" onclick="if(!confirm('Do you really want to make this entity public?')){ return; };" action="#{Session.entDetailsForm.actionChangeEntityPrivacity}"/> <a4j:commandButton value="Make entity private" title="Change publication state of this entity" rendered="#{Session.entDetailsForm.entity.isPublic}" + render="entityDetailsPanel" style="margin-right:10px;" onclick="if(!confirm('Do you really want to make this entity private?')){ return; };" action="#{Session.entDetailsForm.actionChangeEntityPrivacity}"/> @@ -85,12 +87,14 @@ <a4j:commandButton value="Make all directly related entities public" title="Change publication state of directly related entities" rendered="#{Session.entDetailsForm.entity.isPublic}" + render="entityDetailsPanel" style="margin-right:10px;" onclick="if(!confirm('Do you really want to make all related entities public?')){ return; };" action="#{Session.entDetailsForm.actionChangeRelatedEntitiesPrivacity}"/> <a4j:commandButton value="Make all directly related entities private" title="Change publication state of directly related entities" rendered="#{!Session.entDetailsForm.entity.isPublic}" + render="entityDetailsPanel" style="margin-right:10px;" onclick="if(!confirm('Do you really want to make all related entities private?')){ return; };" action="#{Session.entDetailsForm.actionChangeRelatedEntitiesPrivacity}"/>