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

SSDM-175: additional features for Bodenmiller's antibody panel

SVN: 31390
parent 352a96ee
No related branches found
No related tags found
No related merge requests found
...@@ -1249,9 +1249,17 @@ $.extend(BodenmillerLabProfile.prototype, DefaultProfile.prototype, { ...@@ -1249,9 +1249,17 @@ $.extend(BodenmillerLabProfile.prototype, DefaultProfile.prototype, {
* Used by Sample Form * Used by Sample Form
*/ */
this.sampleFormContentExtra = function(sampleTypeCode, sample, containerId) { this.sampleFormContentExtra = function(sampleTypeCode, sample, containerId) {
var isEnabled = mainController.currentView.mode !== SampleFormMode.VIEW; var isExperiment = false;
var dilutionWidget = new DilutionWidget(containerId, this.serverFacade, isEnabled); this.ELNExperiments.forEach(function(experimentTypeCode){
dilutionWidget.init(); if(experimentTypeCode === sampleTypeCode) {
isExperiment = true;
}
});
if(isExperiment) {
var isEnabled = mainController.currentView.mode !== SampleFormMode.VIEW;
var dilutionWidget = new DilutionWidget(containerId, this.serverFacade, isEnabled);
dilutionWidget.init();
}
} }
} }
}); });
......
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