From e9b66972d3d8a0ac1753c975e3b309f57d7f9745 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 17 Jan 2022 10:21:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- templates/repo/cloudbrain/benchmark/new.tmpl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/repo/cloudbrain/benchmark/new.tmpl b/templates/repo/cloudbrain/benchmark/new.tmpl index 84ccbbc39..80b5c1678 100644 --- a/templates/repo/cloudbrain/benchmark/new.tmpl +++ b/templates/repo/cloudbrain/benchmark/new.tmpl @@ -165,11 +165,15 @@ html += "" ; } document.getElementById("benchmark_child_types_id").innerHTML=html; + }) - - $('#benchmark_types_id') - .dropdown(); + document.onreadystatechange = function() { + if (document.readyState === "complete") { + document.getElementById("benchmark_child_types_id")[1].selected=true; + } + } + function validate(){ $('.ui.form') .form({