From 04e0ebfd2050e6322fa6f9e392b147034dbef60a Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Thu, 17 Apr 2014 09:00:00 +0000 Subject: [PATCH] SSDM-175: additional features for Bodenmiller's antibody panel SVN: 31390 --- .../webapps/newbrowser/html/js/config/Profile.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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 b04542a07e8..a22b77e550d 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(); + } } } }); -- GitLab