Skip to content
Snippets Groups Projects
Commit fc87567d authored by juanf's avatar juanf
Browse files

SSDM-959 : Hide empty parent/children sections

SVN: 37495
parent d944ce65
No related branches found
No related tags found
No related merge requests found
...@@ -347,7 +347,7 @@ function SampleFormView(sampleFormController, sampleFormModel) { ...@@ -347,7 +347,7 @@ function SampleFormView(sampleFormController, sampleFormModel) {
var sampleChildrenWidgetId = "sampleChildrenWidgetId"; var sampleChildrenWidgetId = "sampleChildrenWidgetId";
var $sampleChildrenWidget = $("<div>", { "id" : sampleChildrenWidgetId }); var $sampleChildrenWidget = $("<div>", { "id" : sampleChildrenWidgetId });
if(this._sampleFormModel.mode !== FormMode.VIEW || (this._sampleFormModel.mode === FormMode.VIEW && this._sampleFormModel.sample.parents.length > 0)) { if(this._sampleFormModel.mode !== FormMode.VIEW || (this._sampleFormModel.mode === FormMode.VIEW && this._sampleFormModel.sample.children.length > 0)) {
$formColumn.append($sampleChildrenWidget); $formColumn.append($sampleChildrenWidget);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment