diff --git a/templates/repo/modelmanage/convertIndex.tmpl b/templates/repo/modelmanage/convertIndex.tmpl index 718d7b233..b546b8f50 100644 --- a/templates/repo/modelmanage/convertIndex.tmpl +++ b/templates/repo/modelmanage/convertIndex.tmpl @@ -100,7 +100,7 @@
{{$.CsrfTokenHtml}} {{if .IsCanOper}} - + {{$.i18n.Tr "repo.stop"}} {{else}} @@ -309,6 +309,11 @@ }) }) + function stopTask(id){ + console.log("stop form stopForm-" + id); + document.getElementById("stopForm-" + id).submit(); + } + function createModelName(){ let repoName = location.pathname.split('/')[2] let modelName = repoName + '_modelConvert_' + Math.random().toString(36).substr(2, 4)