Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AKU-405: Added support for form controls in tabs #414

Merged
merged 2 commits into from
Jul 30, 2015

Conversation

draperd
Copy link

@draperd draperd commented Jul 30, 2015

This PR addresses https://issues.alfresco.com/jira/browse/AKU-405 to add a new mixin module "alfresco/forms/LayoutMixin" that can be applied to layout controls to create layout widgets to be used inside forms. This has been abstracted and applied to the "alfresco/forms/ControlRow" widget and used to create the "alfresco/forms/TabbedControls" and "alfresco/forms/ControlColumn" modules.

Unit tests have been added to support the new modules.

@@ -290,12 +306,24 @@ define(["dojo/_base/declare",
// we'll ensure that the first tab is both selected and will be immediately rendered
var tabSelected = false;
array.forEach(this.widgets, function(widget) {
if (widget.delayProcessing !== false && !widget.selected)
if ((widget.delayProcessing === true && !widget.selected) ||
widget.delayProcessing === false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could perhaps be rewritten as if (!widget.delayProcessing || !widget.selected) {

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I prefer this to be more explicit

MartinDoyleUK added a commit that referenced this pull request Jul 30, 2015
AKU-405: Added support for form controls in tabs
@MartinDoyleUK MartinDoyleUK merged commit 0f1b915 into develop Jul 30, 2015
@MartinDoyleUK MartinDoyleUK deleted the feature/AKU-405_TabsInForms branch July 30, 2015 14:21
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants