This commit is contained in:
Bel LaPointe
2023-04-10 10:16:18 -06:00
1431 changed files with 527573 additions and 17 deletions

View File

@@ -27,14 +27,7 @@ function upsert() {
function jsonifyForm(id) {
var form = document.getElementById(id)
var entries = new FormData(form).entries();
var json = Object.assign(...Array.from(
entries,
([x,y]) => ({
[x]:y
.replace(/\r\n/g, '\n')
.replace(/\r/g, '\n')
})
))
var json = Object.assign(...Array.from(entries, ([x,y]) => ({[x]:y})));
json.disabled = json.disabled == "false"
var s = JSON.stringify(json)
return s
@@ -64,8 +57,8 @@ function format(job) {
var buttons = ""
var btns = [
{"name":"refresh", "icon":"8635"},
{"name":"run", "icon":"9654"},
{"name":"modify", "icon":"9999"},
{"name":"run", "icon":"9654"},
{"name":"modify", "icon":"9999"},
{"name":"delete", "icon":"10006"}
]
btns.forEach(function(e) {
@@ -76,7 +69,7 @@ function format(job) {
`
})
var strikethrough = "initial"
if (job.disabled)
if (job.disabled)
strikethrough = "line-through"
strikethrough = "text-decoration: "+strikethrough
return `<tr><td><details>