mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 22:09:21 +00:00
Can update the virtual directory of a group
This commit is contained in:
parent
6111e527e0
commit
a8e686d59b
@ -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
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user