From df7b23b64d504f6d338c58539b525e7e4e2fc94c Mon Sep 17 00:00:00 2001 From: zouap Date: Tue, 28 Jun 2022 11:00:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E5=8F=B3=E5=AF=B9=E9=BD=90=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- templates/repo/modelmanage/convertIndex.tmpl | 21 ++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/templates/repo/modelmanage/convertIndex.tmpl b/templates/repo/modelmanage/convertIndex.tmpl index ffed87f1d..545e88ac1 100644 --- a/templates/repo/modelmanage/convertIndex.tmpl +++ b/templates/repo/modelmanage/convertIndex.tmpl @@ -380,21 +380,22 @@ $(function(){ $('#choice_model').dropdown({ onChange:function(value){ - $("#choice_model").addClass("loading") - $('#choice_version').dropdown('clear') - $('#choice_file').dropdown('clear') - $("#model-version").empty() - $("#model-file").empty() - - loadModelVersion(value) + $("#choice_model").addClass("loading") + $('#choice_version').dropdown('clear') + $('#choice_file').dropdown('clear') + $("#model-version").empty() + $("#model-file").empty() + + loadModelVersion(value) + $("#choice_model").removeClass("loading") } }) $('#choice_version').dropdown({ onChange:function(value){ - console.log("model version:" + value); - $('#choice_version input[name="ModelVersion"]').val(value) - loadModelFile(value); + console.log("model version:" + value); + $('#choice_version input[name="ModelVersion"]').val(value) + loadModelFile(value); } })