Get post selected visibility level

This commit is contained in:
Pierre 2018-01-06 15:13:55 +01:00
parent 6f51c34120
commit 1b5678cdd1

View File

@ -440,6 +440,13 @@ ComunicWeb.components.posts.form = {
ComunicWeb.common.notificationSystem.showNotification("Please check you have chosen a post type !", "danger"); ComunicWeb.common.notificationSystem.showNotification("Please check you have chosen a post type !", "danger");
return; return;
} }
//Get the visibility level
var visibilityLevel = visibility_choices_contener.querySelector("input:checked").value;
datas.append("visibility", visibilityLevel);
//Try to perform the request
} }
}, },