From c9585f247dec99bd174bb22f4be5dcc417ec3f9f Mon Sep 17 00:00:00 2001
From: shlomomdahan <64103471+shlomomdahan@users.noreply.github.com>
Date: Tue, 10 Dec 2024 09:05:07 -0500
Subject: [PATCH] extract inline JS script in
SauceOnDemandBuildWrapper/config.jelly
---
.../sauce_ondemand/SauceOnDemandBuildWrapper/config.jelly | 5 +----
.../SauceOnDemandBuildWrapper/sauce-chosen-init.js | 4 ++++
2 files changed, 5 insertions(+), 4 deletions(-)
create mode 100644 src/main/resources/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapper/sauce-chosen-init.js
diff --git a/src/main/resources/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapper/config.jelly b/src/main/resources/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapper/config.jelly
index dc569d66..2072379a 100644
--- a/src/main/resources/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapper/config.jelly
+++ b/src/main/resources/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapper/config.jelly
@@ -102,9 +102,6 @@
-
+
diff --git a/src/main/resources/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapper/sauce-chosen-init.js b/src/main/resources/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapper/sauce-chosen-init.js
new file mode 100644
index 00000000..798657b7
--- /dev/null
+++ b/src/main/resources/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapper/sauce-chosen-init.js
@@ -0,0 +1,4 @@
+document.addEventListener('DOMContentLoaded', function() {
+ new Chosen(document.getElementById('webDriverBrowsers'));
+ new Chosen(document.getElementById('appiumBrowsers'));
+});