Add survey
This commit is contained in:
parent
3f14542348
commit
66a881e960
@ -713,16 +713,16 @@ async function deleteVoteMeme(memeId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function surveySubmit() {
|
async function surveySubmit() {
|
||||||
const satisfaction = document.querySelector('input[name="satisfaction"]:checked').value;
|
const satisfaction = document.querySelector('input[name="satisfaction"]:checked');
|
||||||
const functionality = document.querySelector('input[name="functionality"]:checked').value;
|
const functionality = document.querySelector('input[name="functionality"]:checked');
|
||||||
const content = document.querySelector('input[name="content"]:checked').value;
|
const content = document.querySelector('input[name="content"]:checked');
|
||||||
const comment = document.querySelector('textarea[name="comment"]').value;
|
const comment = document.querySelector('textarea[name="comment"]').value;
|
||||||
if (satisfaction && functionality && content && comment) {
|
if (satisfaction && functionality && content && comment) {
|
||||||
doAction("/survey", {
|
doAction("/survey", {
|
||||||
action: "surveySubmit",
|
action: "surveySubmit",
|
||||||
satisfaction: satisfaction,
|
satisfaction: satisfaction.value,
|
||||||
functionality: functionality,
|
functionality: functionality.value,
|
||||||
content: content,
|
content: content.value,
|
||||||
comment: comment
|
comment: comment
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user