🚸 improve: 多次点击编辑计划任务

This commit is contained in:
naiba 2021-01-21 22:56:20 +08:00
parent 1a762858d2
commit 48f98a43bb
2 changed files with 8 additions and 4 deletions

View File

@ -5,13 +5,14 @@ on:
branches:
- "master"
paths-ignore:
- "script/**"
- ".gitignore"
- "*.md"
- "cmd/playground/**"
- "cmd/agent/**"
- ".github/workflows/agent.yml"
- ".goreleaser.yml"
- ".github/ISSUE_TEMPLATE/**"
- ".goreleaser.yml"
- ".gitignore"
- "script/**"
- "*.md"
jobs:
deploy:

View File

@ -149,6 +149,9 @@ function addOrEditCron(cron) {
modal.find('input[name=ID]').val(cron ? cron.ID : null)
modal.find('input[name=Name]').val(cron ? cron.Name : null)
modal.find('input[name=Scheduler]').val(cron ? cron.Scheduler : null)
modal.find('a.ui.label.visible').each((i,el) => {
el.remove()
})
var servers
if (cron) {
servers = cron.ServersRaw