small changes and force run for release
This commit is contained in:
@@ -57,8 +57,7 @@ function format(job) {
|
||||
var buttons = ""
|
||||
var btns = [
|
||||
{"name":"refresh", "icon":"8635"},
|
||||
{"name":"disable", "icon":"11035"},
|
||||
{"name":"enable", "icon":"9654"},
|
||||
{"name":"run", "icon":"9654"},
|
||||
{"name":"modify", "icon":"9999"},
|
||||
{"name":"delete", "icon":"10006"}
|
||||
]
|
||||
@@ -118,6 +117,16 @@ function jobenable(input) {
|
||||
getField("disabled").checked = false
|
||||
}
|
||||
|
||||
function jobrun(input) {
|
||||
var job = jobFromInput(input)
|
||||
function cb(body, status) {
|
||||
if (status != 200) {
|
||||
console.log("failed to run job: ", status, body)
|
||||
}
|
||||
}
|
||||
http("GET", "/api/job/run/"+job.id, cb, null)
|
||||
}
|
||||
|
||||
function jobmodify(input) {
|
||||
var form = getForm()
|
||||
var job = jobFromInput(input)
|
||||
|
||||
Reference in New Issue
Block a user