From dc9f8025b9710d204d4b5f72873c3e6806fdd2bf Mon Sep 17 00:00:00 2001
From: juanf <juanf@ethz.ch>
Date: Thu, 18 Jan 2024 14:08:32 +0100
Subject: [PATCH] BIS-991: View Modes enum moved to the Plugin interface to
 document it better for external developers

---
 .../eln-lims/1/as/webapps/eln-lims/html/index.html          | 3 ++-
 .../1/as/webapps/eln-lims/html/js/config/ELNLIMSPlugin.js   | 6 ++++++
 .../eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js | 6 ------
 3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html
index 95f08c50289..e4f585e952d 100644
--- a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html
+++ b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/index.html
@@ -123,6 +123,7 @@
 	
 	<script type="text/javascript" src="./js/util/Util.js"></script>
 	<script type="text/javascript" src="./js/util/ExportUtil.js"></script>
+	<script type="text/javascript" src="./js/config/ELNLIMSPlugin.js"></script>
 	<script type="text/javascript" src="./js/util/FormUtil.js"></script>
 	<script type="text/javascript" src="./js/util/Select2Manager.js"></script>
 	<script type="text/javascript" src="./js/util/CKEditorManager.js"></script>
@@ -326,7 +327,7 @@
 	<script type="text/javascript" src="./js/views/ExperimentTable/ExperimentTableModel.js"></script>
 	<script type="text/javascript" src="./js/views/ExperimentTable/ExperimentTableView.js"></script>
 	
-	<script type="text/javascript" src="./js/config/ELNLIMSPlugin.js"></script>
+
 	<script type="text/javascript" src="./plugins/generic/plugin.js"></script>
 
 	<script type="text/javascript" src="./js/util/EventUtil.js"></script>
diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/ELNLIMSPlugin.js b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/ELNLIMSPlugin.js
index 9bccd6713a4..72b14fafd6f 100644
--- a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/ELNLIMSPlugin.js
+++ b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/ELNLIMSPlugin.js
@@ -14,6 +14,12 @@ var ViewType = {
     SAMPLE_TABLE : 5
 }
 
+var FormMode = {
+    CREATE : 0,
+    EDIT : 1,
+    VIEW : 2
+}
+
 $.extend(ELNLIMSPlugin.prototype, {
 	init: function() {
 	
diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js
index dc3674babea..a187494e9d8 100644
--- a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js
+++ b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js
@@ -1,9 +1,3 @@
-var FormMode = {
-    CREATE : 0,
-    EDIT : 1,
-    VIEW : 2
-}
-
 var FormUtil = new function() {
 	this.profile = null;
 	
-- 
GitLab