diff --git a/config/alfresco/messages/webclient.properties b/config/alfresco/messages/webclient.properties index 56c930502e..e3b0b03182 100644 --- a/config/alfresco/messages/webclient.properties +++ b/config/alfresco/messages/webclient.properties @@ -1935,6 +1935,7 @@ error_domain_mismatch=Domain mismatch: expected = {0}, actual = {1} # Confirmations return_to_application=Return to application +return_home=My Content delete_space_info=To remove this space and all of its contents, click OK. delete_space_assoc_info=This space appears in multiple locations, to remove the space from the current location, click OK. delete_space_confirm=Are you sure you want to delete \"{0}\" and all its contents? diff --git a/source/java/org/alfresco/web/bean/NavigationBean.java b/source/java/org/alfresco/web/bean/NavigationBean.java index 7852f0a33b..d5fea94a6c 100644 --- a/source/java/org/alfresco/web/bean/NavigationBean.java +++ b/source/java/org/alfresco/web/bean/NavigationBean.java @@ -734,7 +734,15 @@ public class NavigationBean implements Serializable return this.currentNode; } - + + /** + * @return Boolean value according to CREATE_CHILDREN permission on the current node. + */ + public boolean isCreateChildrenPermissionEnabled() + { + return getCurrentNode().hasPermission(PermissionService.CREATE_CHILDREN); + } + /** * @return Returns the breadcrumb handler elements representing the location path of the UI. */ diff --git a/source/java/org/alfresco/web/bean/rules/CreateCompositeRuleWizard.java b/source/java/org/alfresco/web/bean/rules/CreateCompositeRuleWizard.java index 7b600259c6..e6a138d742 100644 --- a/source/java/org/alfresco/web/bean/rules/CreateCompositeRuleWizard.java +++ b/source/java/org/alfresco/web/bean/rules/CreateCompositeRuleWizard.java @@ -196,14 +196,28 @@ public class CreateCompositeRuleWizard extends CreateRuleWizard { if (isAddingCompositeCondition()) { - //don't clear when editing, since we are looking at a REFERENCE to an existing condition - if (this.editingCondition == false) { + // don't clear when editing, since we are looking at a REFERENCE to an existing condition + if (this.editingCondition == false) + { this.currentConditionProperties.clear(); } + // reset the action drop down - this.selectedCondition = null; + this.selectedCondition = null; + + // determine what page to go back to + FacesContext context = FacesContext.getCurrentInstance(); + String currentViewId = context.getViewRoot().getViewId(); + IHandler handler = this.conditionHandlers.get(CompositeConditionHandler.NAME); - goToPage(FacesContext.getCurrentInstance(), handler.getJSPPath()); + String compositePage = handler.getJSPPath(); + + if (currentViewId.equals(compositePage)) + { + this.returnViewId = getWizardContainerViewId(context); + } + + goToPage(FacesContext.getCurrentInstance(), this.returnViewId); } else { diff --git a/source/java/org/alfresco/web/ui/common/component/UIActionLink.java b/source/java/org/alfresco/web/ui/common/component/UIActionLink.java index 1cf431b64d..fa5713669e 100644 --- a/source/java/org/alfresco/web/ui/common/component/UIActionLink.java +++ b/source/java/org/alfresco/web/ui/common/component/UIActionLink.java @@ -74,6 +74,7 @@ public class UIActionLink extends UICommand this.tooltip = (String)values[5]; this.target = (String)values[6]; this.verticalAlign = (String)values[7]; + this.onclick = (String)values[8]; } /** @@ -91,7 +92,8 @@ public class UIActionLink extends UICommand this.href, this.tooltip, this.target, - this.verticalAlign + this.verticalAlign, + this.onclick }; } diff --git a/source/java/org/alfresco/web/ui/common/renderer/ActionLinkRenderer.java b/source/java/org/alfresco/web/ui/common/renderer/ActionLinkRenderer.java index d34f5ee8c5..cc0be349f3 100644 --- a/source/java/org/alfresco/web/ui/common/renderer/ActionLinkRenderer.java +++ b/source/java/org/alfresco/web/ui/common/renderer/ActionLinkRenderer.java @@ -349,7 +349,23 @@ public class ActionLinkRenderer extends BaseRenderer if (link.getHref() == null) { out.write(""); + out.write(bundle.getString(MSG_RETURN_HOME)); + out.write(""); + out.write("\n