From 1b5678cdd157c88412e80974417a31d5c1d8b126 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sat, 6 Jan 2018 15:13:55 +0100 Subject: [PATCH] Get post selected visibility level --- assets/js/components/posts/form.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/assets/js/components/posts/form.js b/assets/js/components/posts/form.js index f7de2b67..11dda2f2 100644 --- a/assets/js/components/posts/form.js +++ b/assets/js/components/posts/form.js @@ -440,6 +440,13 @@ ComunicWeb.components.posts.form = { ComunicWeb.common.notificationSystem.showNotification("Please check you have chosen a post type !", "danger"); return; } + + //Get the visibility level + var visibilityLevel = visibility_choices_contener.querySelector("input:checked").value; + datas.append("visibility", visibilityLevel); + + //Try to perform the request + } },