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