Client-side POST'ing

This commit is contained in:
David Duque 2021-02-11 00:56:21 +00:00
parent 2fe8522585
commit 824b368891
No known key found for this signature in database
GPG key ID: 2F327738A3C0AE3A

View file

@ -259,6 +259,16 @@
)
}
function update_wkd() {
// Post to /system/pgp/wkd
api(
"/system/pgp/wkd",
"POST",
dirty_config,
(r) => {
show_modal_error("WKD Management", $("<p/>").text(r), () => {if (r == "OK") show_wkd()})
},
(r) => {
show_modal_error("WKD Management", $("<p/>").text(r))
}
)
}
</script>