diff --git a/templates/repo/modelarts/new.tmpl b/templates/repo/modelarts/new.tmpl index 5664de181..3cebd4e09 100755 --- a/templates/repo/modelarts/new.tmpl +++ b/templates/repo/modelarts/new.tmpl @@ -114,13 +114,14 @@
- + {{range .attachments}} - + {{end}} +
@@ -187,4 +188,23 @@ } }) }) + document.querySelector('input[list]').addEventListener('input',function(e){ + var input = e.target, + list = input.getAttribute('list'), + options = document.querySelectorAll('#'+list+' option'), + hiddenInput = document.getElementById(input.getAttribute('id')+'-hidden'), + inputValue = input.value; + hiddenInput.value = inputValue; + for (let i=0;i \ No newline at end of file