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); } })