blob: 93fb743b8354e44f34684ace5f418c9fca1d3dbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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, featured
},
}).done(function () {
let el = document.createElement("p");
el.className = "popup";
el.appendChild(document.createTextNode('Data saved successfully'));
document.body.appendChild(el)
})
}
|