Merge branch 'master' of https://gogs.inhome.blapointe.com/local/firestormy
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user