Can update the virtual directory of a group

This commit is contained in:
Pierre HUBERT 2018-07-14 11:09:14 +02:00
parent 6111e527e0
commit a8e686d59b

View File

@ -121,6 +121,15 @@ ComunicWeb.pages.groups.pages.settings = {
//Group virtual directory
var virtualDirectory = createFormGroup({
target: formContainer,
type: "text",
label: "Virtual directory",
placeholder: "Virtual directory of the group",
value: settings.virtual_directory == "null" ? "" : settings.virtual_directory,
});
//Group visibility //Group visibility
var visibilityForm = createElem2({ var visibilityForm = createElem2({
@ -247,6 +256,7 @@ ComunicWeb.pages.groups.pages.settings = {
//Prepare the update request on the server //Prepare the update request on the server
var settings = { var settings = {
name: groupName.value, name: groupName.value,
virtual_directory: virtualDirectory.value,
visibility: visibilityForm.elements["group-visibility"].value, visibility: visibilityForm.elements["group-visibility"].value,
registration_level: registrationLevelForm.elements["group-registration-level"].value registration_level: registrationLevelForm.elements["group-registration-level"].value
}; };