From 6258963e39f99c0cf883ba1a3328c8a7917e8baa Mon Sep 17 00:00:00 2001 From: ebolam Date: Wed, 31 Aug 2022 11:10:41 -0400 Subject: [PATCH] Fixed all option for Cluster model selection --- static/application.js | 4 +++- templates/index.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/static/application.js b/static/application.js index dc881968..3d56fd83 100644 --- a/static/application.js +++ b/static/application.js @@ -2914,6 +2914,7 @@ $(document).ready(function(){ } else if(msg.cmd == 'selected_model_info') { enableButtons([load_model_accept]); $("#oaimodel").addClass("hidden") + $("#oaimodel")[0].options[0].selected = true; if (msg.key) { $("#modelkey").removeClass("hidden"); $("#modelkey")[0].value = msg.key_value; @@ -2931,9 +2932,10 @@ $(document).ready(function(){ console.log(msg.multi_online_models); if (msg.multi_online_models) { $("#oaimodel")[0].setAttribute("multiple", ""); - console.log($("#oaimodel")[0]) + $("#oaimodel")[0].options[0].textContent = "All" } else { $("#oaimodel")[0].removeAttribute("multiple"); + $("#oaimodel")[0].options[0].textContent = "Select Model(s)" } diff --git a/templates/index.html b/templates/index.html index 9720b286..2880914f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -300,7 +300,7 @@
- +