From 01d905633e423c697b9df0a719914a248e5791ce Mon Sep 17 00:00:00 2001
From: barillac <barillac>
Date: Fri, 10 Oct 2014 10:45:32 +0000
Subject: [PATCH] function for free_form_table added

SVN: 32577
---
 .../newbrowser/html/js/config/YeastLabProfile.js       | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/YeastLabProfile.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/YeastLabProfile.js
index 6f236ff98b2..1db4883b28e 100644
--- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/YeastLabProfile.js
+++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/config/YeastLabProfile.js
@@ -180,6 +180,16 @@ $.extend(YeastLabProfile.prototype, DefaultProfile.prototype, {
 		
 			return sortedResults;
 		}
+		
+		
+		this.sampleFormContentExtra = function(sampleTypeCode, sample, containerId) {
+			if(sampleTypeCode === "RESULT") {
+				var isEnabled = mainController.currentView._sampleFormModel.mode !== FormMode.VIEW;
+				var freeFormTableController = new FreeFormTableController(sample, isEnabled);
+				freeFormTableController.init($("#" + containerId));
+			}
+		}
+
 	
 		this.inspectorContentExtra = function(extraContainerId, sample) {
 			// When requesting information about the sample, we don't need parents and children, so send a copy of the saple without that information.
-- 
GitLab