diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/Profile.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/Profile.js index b04542a07e8514773ec3cf82dc907f3906a407d3..a22b77e550d6b0f1b02c48faf572955fe6d6f928 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/Profile.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/Profile.js @@ -1249,9 +1249,17 @@ $.extend(BodenmillerLabProfile.prototype, DefaultProfile.prototype, { * Used by Sample Form */ this.sampleFormContentExtra = function(sampleTypeCode, sample, containerId) { - var isEnabled = mainController.currentView.mode !== SampleFormMode.VIEW; - var dilutionWidget = new DilutionWidget(containerId, this.serverFacade, isEnabled); - dilutionWidget.init(); + var isExperiment = false; + this.ELNExperiments.forEach(function(experimentTypeCode){ + if(experimentTypeCode === sampleTypeCode) { + isExperiment = true; + } + }); + if(isExperiment) { + var isEnabled = mainController.currentView.mode !== SampleFormMode.VIEW; + var dilutionWidget = new DilutionWidget(containerId, this.serverFacade, isEnabled); + dilutionWidget.init(); + } } } });