summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorromangraef <roman.graef@gmail.com>2018-06-02 10:45:15 +0200
committerromangraef <roman.graef@gmail.com>2018-06-02 10:45:15 +0200
commit2f9e9884c6b227777780d34b4657c6464dbe4571 (patch)
treecd9597171dd4338fc5c79dc78d69e016a18f8c7c /static
parent3dc96e8b31eeef876c89aadf26dbf1e5d3355e7f (diff)
downloadmy-website-master.tar.gz
my-website-master.tar.bz2
my-website-master.zip
feature post editingHEADmaster
Diffstat (limited to 'static')
-rw-r--r--static/edit.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/static/edit.js b/static/edit.js
index 41a82ca..93fb743 100644
--- a/static/edit.js
+++ b/static/edit.js
@@ -2,12 +2,13 @@ function save_changes() {
let summary = $("#summary").val();
let description = $("#description").val();
let link = $("#link").val();
+ let featured = $("#featured").is(':checked');
let name = $("#name").val();
$.ajax({
url: '.',
type: 'POST',
data: {
- summary, description, link, name
+ summary, description, link, name, featured
},
}).done(function () {
let el = document.createElement("p");